Struct jj_lib::backend::ConflictId
source · pub struct ConflictId(/* private fields */);
Implementations§
source§impl ConflictId
impl ConflictId
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 Clone for ConflictId
impl Clone for ConflictId
source§fn clone(&self) -> ConflictId
fn clone(&self) -> ConflictId
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ContentHash for ConflictId
impl ContentHash for ConflictId
source§impl Debug for ConflictId
impl Debug for ConflictId
source§impl Hash for ConflictId
impl Hash for ConflictId
source§impl ObjectId for ConflictId
impl ObjectId for ConflictId
source§impl Ord for ConflictId
impl Ord for ConflictId
source§fn cmp(&self, other: &ConflictId) -> Ordering
fn cmp(&self, other: &ConflictId) -> Ordering
1.21.0 · 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 ConflictId
impl PartialEq for ConflictId
source§fn eq(&self, other: &ConflictId) -> bool
fn eq(&self, other: &ConflictId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConflictId
impl PartialOrd for ConflictId
source§fn partial_cmp(&self, other: &ConflictId) -> Option<Ordering>
fn partial_cmp(&self, other: &ConflictId) -> Option<Ordering>
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 ConflictId
impl StructuralPartialEq for ConflictId
Auto Trait Implementations§
impl Freeze for ConflictId
impl RefUnwindSafe for ConflictId
impl Send for ConflictId
impl Sync for ConflictId
impl Unpin for ConflictId
impl UnwindSafe for ConflictId
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