[−][src]Macro refptr::make_refptr
Allocate a new instance of a Refcounted
struct using a struct literal.
Returns a RefPtr<T>
strong reference to the newly allocated struct.
Example
#[refcounted(local)] struct HeapInt { value: i32 } let ptr = make_refptr!(HeapInt { value: 10 });