Struct git_pathspec::Pattern
source · pub struct Pattern {
pub path: BString,
pub signature: MagicSignature,
pub search_mode: MatchMode,
pub attributes: Vec<Assignment>,
}
Expand description
The output of a pathspec parsing operation. It can be used to match against a one or more paths.
Fields§
§path: BString
The path part of a pathspec.
:(top,literal,icase,attr,exclude)some/path
would yield some/path
.
signature: MagicSignature
All magic signatures that were included in the pathspec.
search_mode: MatchMode
The search mode of the pathspec.
attributes: Vec<Assignment>
All attributes that were included in the ATTR
part of the pathspec, if present.
:(attr:a=one b=):path
would yield attribute a
and b
.
Implementations§
Trait Implementations§
source§impl Ord for Pattern
impl Ord for Pattern
source§impl PartialEq<Pattern> for Pattern
impl PartialEq<Pattern> for Pattern
source§impl PartialOrd<Pattern> for Pattern
impl PartialOrd<Pattern> for Pattern
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more