pub struct IgnoredFileClaim {
pub work_tree: PathBuf,
pub kind: Option<Kind>,
}Expand description
A claim on a gitignored file.
The one tier-two claim that can say what it found, and only because a file’s name is
sometimes evidence where a directory’s never is. .env is the only copy of something and
.DS_Store is the copy of nothing, so the two ends of Kind’s cost axis are reachable
from a name alone — and the middle three, which are statements about how something was
produced, are not.
Fields§
§work_tree: PathBufThe git work tree whose ignore stack and index justified the claim.
kind: Option<Kind>What the name says this is, or None when it says nothing. See
Kind::of_ignored_file.
Trait Implementations§
Source§impl Clone for IgnoredFileClaim
impl Clone for IgnoredFileClaim
Source§fn clone(&self) -> IgnoredFileClaim
fn clone(&self) -> IgnoredFileClaim
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 moreAuto Trait Implementations§
impl Freeze for IgnoredFileClaim
impl RefUnwindSafe for IgnoredFileClaim
impl Send for IgnoredFileClaim
impl Sync for IgnoredFileClaim
impl Unpin for IgnoredFileClaim
impl UnsafeUnpin for IgnoredFileClaim
impl UnwindSafe for IgnoredFileClaim
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more