pub struct ReservedPathComponent {
pub index: usize,
pub component: String,
pub reason: ReservedMetadataName,
}Expand description
A path component that is a reserved metadata name.
Fields§
§index: usizeZero-based index of the component among the path’s non-empty,
non-. components.
component: StringThe component, lossily decoded for display.
reason: ReservedMetadataNameImplementations§
Source§impl ReservedPathComponent
impl ReservedPathComponent
Sourcepub fn is_own_metadata(&self) -> bool
pub fn is_own_metadata(&self) -> bool
Whether this is the exact root .git or .heddle: the repository’s
own metadata, which every walk skips silently. Anything else skipped
for this reason deserves a warning naming it.
Trait Implementations§
Source§impl Clone for ReservedPathComponent
impl Clone for ReservedPathComponent
Source§fn clone(&self) -> ReservedPathComponent
fn clone(&self) -> ReservedPathComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReservedPathComponent
impl Debug for ReservedPathComponent
Source§impl Display for ReservedPathComponent
impl Display for ReservedPathComponent
impl Eq for ReservedPathComponent
Source§impl PartialEq for ReservedPathComponent
impl PartialEq for ReservedPathComponent
impl StructuralPartialEq for ReservedPathComponent
Auto Trait Implementations§
impl Freeze for ReservedPathComponent
impl RefUnwindSafe for ReservedPathComponent
impl Send for ReservedPathComponent
impl Sync for ReservedPathComponent
impl Unpin for ReservedPathComponent
impl UnsafeUnpin for ReservedPathComponent
impl UnwindSafe for ReservedPathComponent
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