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.
RefsNoneif there is no reference.RefsSingleif there is zero or one reference.RefsArrayif there is a constant number of references.RefsVecif there is a dynamic number of references.
Sourcetype Next: Refs
type Next: Refs
The way the next node references will be stored.
RefsNoneif there is no reference.RefsSingleif there is zero or one reference.RefsArrayif there is a constant number of references.RefsVecif 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.
RefsNoneif there is no reference.RefsSingleif there is zero or one reference.RefsArrayif there is a constant number of references.RefsVecif there is a dynamic number of references.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.