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
Initialization
 
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().
- globalscontribute first and consist of all globally available, static files.
- info_attributesis a path that should refer to- .git/info/attributes, and it’s not an error if the file doesn’t exist.
- caseis used to control case-sensitivity during matching.
- sourcespecifies 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 duplicate 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