Expand description
A linked list implementation.
Macros§
- define_list_ arc_ field_ getter 
- Defines getters for a ListArcField.
- impl_has_ list_ links 
- Implements the HasListLinkstrait for the given type.
- impl_has_ list_ links_ self_ ptr 
- Implements the HasListLinksandHasSelfPtrtraits for the given type.
- impl_list_ arc_ safe 
- Declares that this type supports ListArc.
- impl_list_ item 
- Implements the ListItemtrait for the given type.
Structs§
- AtomicTracker 
- A utility for tracking whether a ListArcexists using an atomic.
- Cursor
- A cursor into a List.
- CursorPeek 
- References the element in the list next to the cursor.
- IntoIter 
- An owning iterator into a List.
- Iter
- An iterator over a List.
- List
- A linked list.
- ListArc
- A wrapper around Arcthat’s guaranteed unique for the given id.
- ListArcField 
- A field owned by a specific ListArc.
- ListLinks 
- The prev/next pointers for an item in a linked list.
- ListLinks Self Ptr 
- Similar to ListLinks, but also contains a pointer to the full value.
Traits§
- HasListLinks 
- Declares that this type has a ListLinks<ID>field at a fixed offset.
- HasSelfPtr 
- Declares that the ListLinks<ID>field in this struct is inside aListLinksSelfPtr<T, ID>.
- ListArcSafe 
- Declares that this type has some way to ensure that there is exactly one ListArcinstance for this id.
- ListItem 
- Implemented by types where a ListArc<Self>can be inserted into aList.
- TryNewList Arc 
- Declares that this type is able to safely attempt to create ListArcs at any time.