pub enum Order {
AccessOrder,
InsertionOrder,
}Expand description
An enum used to specify the iteration order for the LinkedHashMap.
InsertionOrder is the order in which the
keys were inserted into the map from least recently inserted
(oldest) to most recently inserted (newest).
AccessOrder is the order in which the
keys in the map were last accessed from least-recently accessed
(oldest) to most recently accessed (newest).
Variants§
AccessOrder
LinkedHashMap iteration order from least-recently accessed to most-recently accessed.
InsertionOrder
LinkedHashMap iteration order from least-recently inserted to most-recently inserted.
Trait Implementations§
impl Eq for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
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