pub struct SymlinkId(/* private fields */);
Implementations§
source§impl SymlinkId
impl SymlinkId
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 SymlinkId
impl ContentHash for SymlinkId
source§impl Ord for SymlinkId
impl Ord for SymlinkId
source§impl PartialEq for SymlinkId
impl PartialEq for SymlinkId
source§impl PartialOrd for SymlinkId
impl PartialOrd for SymlinkId
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 SymlinkId
impl StructuralPartialEq for SymlinkId
Auto Trait Implementations§
impl Freeze for SymlinkId
impl RefUnwindSafe for SymlinkId
impl Send for SymlinkId
impl Sync for SymlinkId
impl Unpin for SymlinkId
impl UnwindSafe for SymlinkId
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