pub struct MatchedRule<'a> { /* private fields */ }Expand description
A reference that has been matched against a ValidRule.
Can be constructed by using Rules::matches.
Implementations§
Source§impl MatchedRule<'_>
impl MatchedRule<'_>
Sourcepub fn refname(&self) -> &Qualified<'_>
pub fn refname(&self) -> &Qualified<'_>
Return the reference name that was used for checking if it was a match.
Sourcepub fn rule(&self) -> &Rule<ResolvedDelegates, Threshold>
pub fn rule(&self) -> &Rule<ResolvedDelegates, Threshold>
Return the rule that was matched.
Sourcepub fn threshold(&self) -> &Threshold
pub fn threshold(&self) -> &Threshold
Return the doc::Threshold for the matched rule.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MatchedRule<'a>
impl<'a> RefUnwindSafe for MatchedRule<'a>
impl<'a> Send for MatchedRule<'a>
impl<'a> Sync for MatchedRule<'a>
impl<'a> Unpin for MatchedRule<'a>
impl<'a> UnwindSafe for MatchedRule<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more