Trait orx_selfref_col::Variant
source · pub trait Variant: Sized {
type Item;
type Prev: Refs;
type Next: Refs;
type Ends: Refs;
}
Expand description
Variant defining SelfRefCol
specifications.
Required Associated Types§
sourcetype Prev: Refs
type Prev: Refs
The way the previous node references will be stored.
RefsNone
if there is no reference.RefsSingle
if there is zero or one reference.RefsArray
if there is a constant number of references.RefsVec
if there is a dynamic number of references.
sourcetype Next: Refs
type Next: Refs
The way the next node references will be stored.
RefsNone
if there is no reference.RefsSingle
if there is zero or one reference.RefsArray
if there is a constant number of references.RefsVec
if there is a dynamic number of references.
sourcetype Ends: Refs
type Ends: Refs
The way the ends of the collection will be stored, such as the front of a linked list or root of a tree.
RefsNone
if there is no reference.RefsSingle
if there is zero or one reference.RefsArray
if there is a constant number of references.RefsVec
if there is a dynamic number of references.
Object Safety§
This trait is not object safe.