pub enum PackObjectId {
Hash(ContentHash),
ChangeId(ChangeId),
}Variants§
Hash(ContentHash)
ChangeId(ChangeId)
Implementations§
Source§impl PackObjectId
impl PackObjectId
pub fn encode_tagged(self, buf: &mut Vec<u8>)
pub fn decode_tagged(data: &[u8]) -> Result<(Self, usize)>
Trait Implementations§
Source§impl Clone for PackObjectId
impl Clone for PackObjectId
Source§fn clone(&self) -> PackObjectId
fn clone(&self) -> PackObjectId
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 PackObjectId
impl Debug for PackObjectId
Source§impl Hash for PackObjectId
impl Hash for PackObjectId
Source§impl Ord for PackObjectId
impl Ord for PackObjectId
Source§fn cmp(&self, other: &PackObjectId) -> Ordering
fn cmp(&self, other: &PackObjectId) -> Ordering
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
Source§impl PartialEq for PackObjectId
impl PartialEq for PackObjectId
Source§fn eq(&self, other: &PackObjectId) -> bool
fn eq(&self, other: &PackObjectId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PackObjectId
impl PartialOrd for PackObjectId
impl Copy for PackObjectId
impl Eq for PackObjectId
impl StructuralPartialEq for PackObjectId
Auto Trait Implementations§
impl Freeze for PackObjectId
impl RefUnwindSafe for PackObjectId
impl Send for PackObjectId
impl Sync for PackObjectId
impl Unpin for PackObjectId
impl UnsafeUnpin for PackObjectId
impl UnwindSafe for PackObjectId
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