pub struct Links<T> { /* private fields */ }
Expand description
Links to other nodes in a TransferStack
or Stack
.
In order to be part of a Stack
or TransferStack
, a type must contain
an instance of this type, and must implement the Linked
trait for
Links<Self>
.
Implementations§
Trait Implementations§
impl<T: Send> Send for Links<T>
§Safety
Types containing Links
may be Send
: the pointers within the Links
may
mutably alias another value, but the links can only be accessed by the
owner of the TransferStack
itself, because the pointers are private. As
long as TransferStack
upholds its own invariants, Links
should not
make a type !Send
.
impl<T: Sync> Sync for Links<T>
§Safety
Types containing Links
may be Send
: the pointers within the Links
may
mutably alias another value, but the links can only be accessed by the
owner of the TransferStack
itself, because the pointers are private. As
long as TransferStack
upholds its own invariants, Links
should not
make a type !Send
.