pub struct ChangeId(/* private fields */);
Implementations§
source§impl ChangeId
impl ChangeId
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 ChangeId
impl ContentHash for ChangeId
source§impl IdIndexSourceEntry<ChangeId> for IndexEntry<'_>
impl IdIndexSourceEntry<ChangeId> for IndexEntry<'_>
source§impl Ord for ChangeId
impl Ord for ChangeId
source§impl PartialEq for ChangeId
impl PartialEq for ChangeId
source§impl PartialOrd for ChangeId
impl PartialOrd for ChangeId
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 ChangeId
impl StructuralPartialEq for ChangeId
Auto Trait Implementations§
impl RefUnwindSafe for ChangeId
impl Send for ChangeId
impl Sync for ChangeId
impl Unpin for ChangeId
impl UnwindSafe for ChangeId
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more