pub struct StandardAttributeMatcher { /* private fields */ }Expand description
A reusable matcher for standard worktree attributes (global or
core.attributesFile, every in-tree .gitattributes, and
$GIT_DIR/info/attributes).
This is behaviourally identical to standard_attributes_for_path except
the attribute sources are read once and reused for each path.
Implementations§
Source§impl StandardAttributeMatcher
impl StandardAttributeMatcher
pub fn from_worktree_root(worktree_root: impl AsRef<Path>) -> Result<Self>
pub fn attributes_for_path( &self, path: &[u8], requested: &[Vec<u8>], all: bool, ) -> Vec<AttributeCheck>
Auto Trait Implementations§
impl Freeze for StandardAttributeMatcher
impl RefUnwindSafe for StandardAttributeMatcher
impl Send for StandardAttributeMatcher
impl Sync for StandardAttributeMatcher
impl Unpin for StandardAttributeMatcher
impl UnsafeUnpin for StandardAttributeMatcher
impl UnwindSafe for StandardAttributeMatcher
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