#[repr(u8)]pub enum PackObjectType {
Commit = 1,
Tree = 2,
Blob = 3,
Tag = 4,
}Expand description
Pack object type encoding
Variants§
Implementations§
Source§impl PackObjectType
impl PackObjectType
pub fn from_object_type(t: ObjectType) -> Self
pub fn to_object_type(self) -> ObjectType
pub fn from_u8(v: u8) -> Option<Self>
Trait Implementations§
Source§impl Clone for PackObjectType
impl Clone for PackObjectType
Source§fn clone(&self) -> PackObjectType
fn clone(&self) -> PackObjectType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackObjectType
impl Debug for PackObjectType
Source§impl PartialEq for PackObjectType
impl PartialEq for PackObjectType
impl Copy for PackObjectType
impl Eq for PackObjectType
impl StructuralPartialEq for PackObjectType
Auto Trait Implementations§
impl Freeze for PackObjectType
impl RefUnwindSafe for PackObjectType
impl Send for PackObjectType
impl Sync for PackObjectType
impl Unpin for PackObjectType
impl UnwindSafe for PackObjectType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)