pub enum MetaSearch<'a> {
NoMetadata,
Hits(&'a [MetaEntry]),
}Expand description
The result of a search that may not have happened.
Hits(&[]) means searched, found nothing. NoMetadata means there was
nothing to search. Same absence of results, different fact — and no method
here flattens one into the other.
Variants§
Implementations§
Trait Implementations§
Source§impl<'a> Clone for MetaSearch<'a>
impl<'a> Clone for MetaSearch<'a>
Source§fn clone(&self) -> MetaSearch<'a>
fn clone(&self) -> MetaSearch<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for MetaSearch<'a>
impl<'a> Debug for MetaSearch<'a>
Source§impl<'a> PartialEq for MetaSearch<'a>
impl<'a> PartialEq for MetaSearch<'a>
impl<'a> StructuralPartialEq for MetaSearch<'a>
Auto Trait Implementations§
impl<'a> Freeze for MetaSearch<'a>
impl<'a> RefUnwindSafe for MetaSearch<'a>
impl<'a> Send for MetaSearch<'a>
impl<'a> Sync for MetaSearch<'a>
impl<'a> Unpin for MetaSearch<'a>
impl<'a> UnsafeUnpin for MetaSearch<'a>
impl<'a> UnwindSafe for MetaSearch<'a>
Blanket Implementations§
impl<T> Allocation for T
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