pub struct MatcherRef<'a, T: ?Sized>(/* private fields */);
Expand description
Result type of TermMatcher::matcher_ref
and GraphNameMatcher::matcher_ref
.
Trait Implementations§
Source§impl<'a, T> Clone for MatcherRef<'a, T>
impl<'a, T> Clone for MatcherRef<'a, T>
Source§impl<'a, T: GraphNameMatcher + ?Sized> GraphNameMatcher for MatcherRef<'a, T>
impl<'a, T: GraphNameMatcher + ?Sized> GraphNameMatcher for MatcherRef<'a, T>
Source§type Term = <T as GraphNameMatcher>::Term
type Term = <T as GraphNameMatcher>::Term
The type of term that this GraphNameMatcher contains
Source§fn matches<T2: Term + ?Sized>(&self, graph_name: GraphName<&T2>) -> bool
fn matches<T2: Term + ?Sized>(&self, graph_name: GraphName<&T2>) -> bool
Check whether this matcher matches
t
.Source§fn constant(&self) -> Option<GraphName<&Self::Term>>
fn constant(&self) -> Option<GraphName<&Self::Term>>
Return
None
, unless this matcher can only match a single graph name,
in which case this method may return that graph name. Read moreSource§fn matcher_ref(&self) -> MatcherRef<'_, Self>
fn matcher_ref(&self) -> MatcherRef<'_, Self>
Return a
GraphNameMatcher
that is actually just a reference to this one.Source§impl<'a, T: TermMatcher + ?Sized> TermMatcher for MatcherRef<'a, T>
impl<'a, T: TermMatcher + ?Sized> TermMatcher for MatcherRef<'a, T>
Source§type Term = <T as TermMatcher>::Term
type Term = <T as TermMatcher>::Term
The type of term that this TermMatcher contains
Source§fn constant(&self) -> Option<&Self::Term>
fn constant(&self) -> Option<&Self::Term>
Return
None
, unless this matcher can only match a single term,
in which case this method may return that term. Read moreSource§fn gn(self) -> TermMatcherGn<Self>where
Self: Sized,
fn gn(self) -> TermMatcherGn<Self>where
Self: Sized,
Source§fn matcher_ref(&self) -> MatcherRef<'_, Self>
fn matcher_ref(&self) -> MatcherRef<'_, Self>
Return a
TermMatcher
that is actually just a reference to this one.impl<'a, T> Copy for MatcherRef<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for MatcherRef<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for MatcherRef<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> Send for MatcherRef<'a, T>
impl<'a, T> Sync for MatcherRef<'a, T>
impl<'a, T> Unpin for MatcherRef<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for MatcherRef<'a, T>where
T: RefUnwindSafe + ?Sized,
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