Composite Type Declaration and Creation
pub struct SomeStruct {
// ...
}
pub resource SomeResource {
// ...
}// instantiate a new struct object and assign it to a constant
let a = SomeStruct()// instantiate a new resource object and assign it to a constant
let b <- create SomeResource()Composite Data Initializer Overloading
Last updated