pub enum SearchQueryMatch {
Path(SearchQueryPathMatch),
Contents(SearchQueryContentsMatch),
}
Expand description
Represents a match for a search query
Variants§
Path(SearchQueryPathMatch)
Matches part of a file’s path
Contents(SearchQueryContentsMatch)
Matches part of a file’s contents
Implementations§
source§impl SearchQueryMatch
impl SearchQueryMatch
pub fn into_path_match(self) -> Option<SearchQueryPathMatch>
pub fn into_contents_match(self) -> Option<SearchQueryContentsMatch>
Trait Implementations§
source§impl Clone for SearchQueryMatch
impl Clone for SearchQueryMatch
source§fn clone(&self) -> SearchQueryMatch
fn clone(&self) -> SearchQueryMatch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SearchQueryMatch
impl Debug for SearchQueryMatch
source§impl<'de> Deserialize<'de> for SearchQueryMatch
impl<'de> Deserialize<'de> for SearchQueryMatch
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SearchQueryMatch> for SearchQueryMatch
impl PartialEq<SearchQueryMatch> for SearchQueryMatch
source§fn eq(&self, other: &SearchQueryMatch) -> bool
fn eq(&self, other: &SearchQueryMatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SearchQueryMatch
impl Serialize for SearchQueryMatch
impl Eq for SearchQueryMatch
impl StructuralEq for SearchQueryMatch
impl StructuralPartialEq for SearchQueryMatch
Auto Trait Implementations§
impl RefUnwindSafe for SearchQueryMatch
impl Send for SearchQueryMatch
impl Sync for SearchQueryMatch
impl Unpin for SearchQueryMatch
impl UnwindSafe for SearchQueryMatch
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