Struct gix_worktree::stack::state::Attributes
source · pub struct Attributes { /* private fields */ }
Available on crate feature
attributes
only.Expand description
State related to attributes associated with files in the repository.
Implementations§
source§impl Attributes
impl Attributes
Initialization
sourcepub fn new(
globals: Search,
info_attributes: Option<PathBuf>,
source: Source,
collection: MetadataCollection,
) -> Self
pub fn new( globals: Search, info_attributes: Option<PathBuf>, source: Source, collection: MetadataCollection, ) -> Self
Create a new instance from an attribute match group that represents globals
. It can more easily be created with
AttributeMatchGroup::new_globals()
.
globals
contribute first and consist of all globally available, static files.info_attributes
is a path that should refer to.git/info/attributes
, and it’s not an error if the file doesn’t exist.case
is used to control case-sensitivity during matching.source
specifies from where the directory-based attribute files should be loaded from.
Trait Implementations§
source§impl Clone for Attributes
impl Clone for Attributes
source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for Attributes
impl Default for Attributes
source§fn default() -> Attributes
fn default() -> Attributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)