Struct git_repository::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
sourcepub fn new(globals: MatchGroup<Attributes>) -> Attributes
pub fn new(globals: MatchGroup<Attributes>) -> Attributes
Create a new instance from an attribute match group that represents globals
.
A stack of attributes will be applied on top of it later.
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 moresourceimpl 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>) -> Attributes
fn from(group: MatchGroup<Attributes>) -> Attributes
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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