pub enum CatFileMode {
Type,
Size,
Exists,
PrettyPrint,
}Expand description
Mode of operation for cat-file.
Variants§
Type
-t: print the object’s type.
Size
-s: print the object’s size.
Exists
-e: exit 0 if object exists, non-zero otherwise.
PrettyPrint
-p: pretty-print the object’s contents.
Trait Implementations§
Source§impl Clone for CatFileMode
impl Clone for CatFileMode
Source§fn clone(&self) -> CatFileMode
fn clone(&self) -> CatFileMode
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 CatFileMode
impl Debug for CatFileMode
impl Copy for CatFileMode
Auto Trait Implementations§
impl Freeze for CatFileMode
impl RefUnwindSafe for CatFileMode
impl Send for CatFileMode
impl Sync for CatFileMode
impl Unpin for CatFileMode
impl UnsafeUnpin for CatFileMode
impl UnwindSafe for CatFileMode
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