pub struct Links<T: ?Sized> { /* private fields */ }
Expand description

Links to other nodes in a List.

In order to be part of a List, a type must contain an instance of this type, and must implement the Linked trait for Links<Self>.

Implementations

Returns new links for a doubly-linked intrusive list.

Returns true if this node is currently linked to a List.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 List itself, because the pointers are private. As long as List upholds its own invariants, Links should not make a type !Send.

Safety

Types containing Links may be Sync: the pointers within the Links may mutably alias another value, but the links can only be accessed by the owner of the List itself, because the pointers are private. As long as List upholds its own invariants, Links should not make a type !Sync.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.