pub enum FileMode {
Blob,
BlobExecutable,
Link,
Commit,
Tree,
Other(u32),
}Expand description
File mode in a Git diff, parsed from the octal value Git records.
Variants§
Blob
Regular file (100644).
BlobExecutable
Executable regular file (100755).
Link
Symbolic link (120000).
Commit
Submodule reference, i.e. a Git commit (160000).
Tree
Directory tree (040000).
Other(u32)
Any other mode, preserved as the original octal value.
Implementations§
Trait Implementations§
impl Copy for FileMode
impl Eq for FileMode
Source§impl Ord for FileMode
impl Ord for FileMode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for FileMode
impl PartialOrd for FileMode
impl StructuralPartialEq for FileMode
Auto Trait Implementations§
impl Freeze for FileMode
impl RefUnwindSafe for FileMode
impl Send for FileMode
impl Sync for FileMode
impl Unpin for FileMode
impl UnsafeUnpin for FileMode
impl UnwindSafe for FileMode
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