Expand description
An owned hash identifying objects, most commonly Sha1
Variants
Sha1([u8; 20])
A SHA 1 hash digest
Implementations
Access and conversion
Return the raw byte slice representing this hash
Return the raw mutable byte slice representing this hash
The hash of an empty tree
Hash decoding
Methods from Deref<Target = oid>
The first byte of the hash, commonly used to partition a set of Id
s
Interpret this object id as raw byte slice.
Return a type which can display itself in hexadecimal form with the len
amount of characters.
Write ourselves to the out
in hexadecimal notation, returning the amount of written bytes.
Panics if the buffer isn’t big enough to hold twice as many bytes as the current binary size.
Write ourselves to out
in hexadecimal notation
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ObjectId
impl UnwindSafe for ObjectId
Blanket Implementations
Mutably borrows from an owned value. Read more