pub enum Query<'a> {
Index {
index: usize,
from_last: bool,
},
Key(Cow<'a, str>),
}Expand description
Either a key or an index query
Variants§
Index
The index query. Represents the index (starting at 0) from either the front or the back
Key(Cow<'a, str>)
The key query. Represents string key to query by
Implementations§
Trait Implementations§
impl<'a> Eq for Query<'a>
impl<'a> StructuralPartialEq for Query<'a>
Auto Trait Implementations§
impl<'a> Freeze for Query<'a>
impl<'a> RefUnwindSafe for Query<'a>
impl<'a> Send for Query<'a>
impl<'a> Sync for Query<'a>
impl<'a> Unpin for Query<'a>
impl<'a> UnsafeUnpin for Query<'a>
impl<'a> UnwindSafe for Query<'a>
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