pub enum OrderRepr {
Exact,
Relative,
}Expand description
Representation of order cache in an order-cached list. This will determine when the order cache is invalidated.
Variants§
Exact
The order exactly represents the position in the list. e.g.
List: (Head = 0) <-> A(1) <-> B(2) <-> C(3) <-> (Tail = usize::MAX)Invalidates the order cache on any insertion or removal except when inserting at the end or removing the last element.
Relative
The order represents a relative position in the list, but not necessarily the exact index. e.g.
List: (Head = 0) <-> A(1) <-> B(3) <-> C(4) <-> (Tail = usize::MAX)Trait Implementations§
impl Copy for OrderRepr
impl Eq for OrderRepr
impl StructuralPartialEq for OrderRepr
Auto Trait Implementations§
impl Freeze for OrderRepr
impl RefUnwindSafe for OrderRepr
impl Send for OrderRepr
impl Sync for OrderRepr
impl Unpin for OrderRepr
impl UnsafeUnpin for OrderRepr
impl UnwindSafe for OrderRepr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more