pub struct TreeId(/* private fields */);
Implementations§
source§impl TreeId
impl TreeId
pub fn new(value: Vec<u8>) -> Self
pub fn from_bytes(bytes: &[u8]) -> Self
sourcepub fn from_hex(hex: &'static str) -> Self
pub fn from_hex(hex: &'static str) -> Self
Parses the given hex string into an ObjectId.
The given string must be valid. A static str is required to prevent API misuse.
sourcepub fn try_from_hex(hex: &str) -> Result<Self, FromHexError>
pub fn try_from_hex(hex: &str) -> Result<Self, FromHexError>
Parses the given hex string into an ObjectId.
Trait Implementations§
source§impl ContentHash for TreeId
impl ContentHash for TreeId
source§impl Ord for TreeId
impl Ord for TreeId
source§impl PartialEq for TreeId
impl PartialEq for TreeId
source§impl PartialOrd for TreeId
impl PartialOrd for TreeId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TreeId
impl StructuralPartialEq for TreeId
Auto Trait Implementations§
impl Freeze for TreeId
impl RefUnwindSafe for TreeId
impl Send for TreeId
impl Sync for TreeId
impl Unpin for TreeId
impl UnwindSafe for TreeId
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