pub struct Ordered<T, V> { /* private fields */ }Expand description
A path whose index keeps its keys in order, so it answers ranges as well as equality.
A separate type rather than a flag on Path, because which questions a
path can answer is decided when the type is written and there is no reason
for the compiler not to know it. Docs::range takes one of these and
nothing else, so asking an equality index for a range is a type error at the
call site rather than a message at run time.
Implementations§
Trait Implementations§
impl<T, V> Copy for Ordered<T, V>
Auto Trait Implementations§
impl<T, V> Freeze for Ordered<T, V>
impl<T, V> RefUnwindSafe for Ordered<T, V>where
Path<T, V>: RefUnwindSafe,
impl<T, V> Send for Ordered<T, V>
impl<T, V> Sync for Ordered<T, V>
impl<T, V> Unpin for Ordered<T, V>
impl<T, V> UnsafeUnpin for Ordered<T, V>where
Path<T, V>: UnsafeUnpin,
impl<T, V> UnwindSafe for Ordered<T, V>where
Path<T, V>: UnwindSafe,
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