pub struct Globreeks { /* private fields */ }Expand description
the thing. create a new one with Globreeks::new. use it with Globreeks::evaluate.
Implementations§
Source§impl Globreeks
impl Globreeks
Sourcepub fn evaluate_candidate<'a>(&self, path: &Candidate<'a>) -> bool
pub fn evaluate_candidate<'a>(&self, path: &Candidate<'a>) -> bool
checks whether the supplied path matches the patterns supplied in Globreeks::new.
if you want to supply &str rather than Candidate, see: Globreeks::evaluate.
Sourcepub fn evaluate<S>(&self, path: S) -> bool
pub fn evaluate<S>(&self, path: S) -> bool
checks whether the supplied path matches the patterns supplied in Globreeks::new.
internally converts the str argument to Candidate. also see: Globreeks::evaluate_candidate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Globreeks
impl RefUnwindSafe for Globreeks
impl Send for Globreeks
impl Sync for Globreeks
impl Unpin for Globreeks
impl UnwindSafe for Globreeks
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