pub struct GitFlags {
pub cached: bool,
pub added: bool,
pub modified: bool,
pub renamed: bool,
pub ignored: bool,
pub untracked: bool,
}
Fields§
§cached: bool
§added: bool
§modified: bool
§renamed: bool
§ignored: bool
§untracked: bool
Implementations§
Source§impl GitFlags
impl GitFlags
pub fn new() -> Self
pub fn with_cached(self, cached: bool) -> Self
pub fn with_added(self, added: bool) -> Self
pub fn with_modified(self, modified: bool) -> Self
pub fn with_renamed(self, renamed: bool) -> Self
pub fn with_ignored(self, ignored: bool) -> Self
pub fn with_untracked(self, untracked: bool) -> Self
pub fn test_allowed(&self, status: &Status) -> Option<Self>
Trait Implementations§
impl Copy for GitFlags
impl StructuralPartialEq for GitFlags
Auto Trait Implementations§
impl Freeze for GitFlags
impl RefUnwindSafe for GitFlags
impl Send for GitFlags
impl Sync for GitFlags
impl Unpin for GitFlags
impl UnwindSafe for GitFlags
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