Struct gix_attributes::search::Match
source · pub struct Match<'a> {
pub pattern: &'a Pattern,
pub assignment: AssignmentRef<'a>,
pub kind: MatchKind,
pub location: MatchLocation<'a>,
}
Expand description
Describes a matching pattern with
Fields§
§pattern: &'a Pattern
The glob pattern itself, like /target/*
.
assignment: AssignmentRef<'a>
The key=value pair of the attribute that matched at the pattern. There can be multiple matches per pattern.
kind: MatchKind
Additional information about the kind of match.
location: MatchLocation<'a>
Information about the location of the match.
Trait Implementations§
source§impl<'a> Ord for Match<'a>
impl<'a> Ord for Match<'a>
source§impl<'a> PartialOrd for Match<'a>
impl<'a> PartialOrd for Match<'a>
impl<'a> Eq for Match<'a>
impl<'a> StructuralPartialEq for Match<'a>
Auto Trait Implementations§
impl<'a> Freeze for Match<'a>
impl<'a> RefUnwindSafe for Match<'a>
impl<'a> Send for Match<'a>
impl<'a> Sync for Match<'a>
impl<'a> Unpin for Match<'a>
impl<'a> UnwindSafe for Match<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)