Struct git_worktree::fs::cache::state::Attributes
source · [−]pub struct Attributes {
pub stack: MatchGroup<Attributes>,
pub globals: MatchGroup<Attributes>,
}
Expand description
State related to attributes associated with files in the repository.
Fields
stack: MatchGroup<Attributes>
Attribute patterns that match the currently set directory (in the stack).
globals: MatchGroup<Attributes>
Attribute patterns which aren’t tied to the repository root, hence are global. They are consulted last.
Implementations
sourceimpl Attributes
impl Attributes
pub fn new(globals: MatchGroup<Attributes>) -> Self
Trait Implementations
sourceimpl Clone for Attributes
impl Clone for Attributes
sourcefn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for Attributes
impl Default for Attributes
sourcefn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
sourceimpl From<MatchGroup<Attributes>> for Attributes
impl From<MatchGroup<Attributes>> for Attributes
sourcefn from(group: MatchGroup<Attributes>) -> Self
fn from(group: MatchGroup<Attributes>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more