Struct globset::Candidate
[−]
[src]
pub struct Candidate<'a> { /* fields omitted */ }
A candidate path for matching.
All glob matching in this crate operates on Candidate
values.
Constructing candidates has a very small cost associated with it, so
callers may find it beneficial to amortize that cost when matching a single
path against multiple globs or sets of globs.
Methods
impl<'a> Candidate<'a>
[src]
fn new<P: AsRef<Path> + ?Sized>(path: &'a P) -> Candidate<'a>
[src]
Create a new candidate for matching from the given path.
Trait Implementations
impl<'a> Clone for Candidate<'a>
[src]
fn clone(&self) -> Candidate<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more