Struct crdts::identifier::Identifier
source · pub struct Identifier<T>(_);
Expand description
A dense Identifier, if you have two identifiers that are different, we can always construct an identifier between them.
Implementations§
source§impl<T: Clone + Ord + Eq> Identifier<T>
impl<T: Clone + Ord + Eq> Identifier<T>
sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Get the value this entry represents, consuming the entry.
Trait Implementations§
source§impl<T: Arbitrary> Arbitrary for Identifier<T>
impl<T: Arbitrary> Arbitrary for Identifier<T>
source§impl<T: Clone> Clone for Identifier<T>
impl<T: Clone> Clone for Identifier<T>
source§fn clone(&self) -> Identifier<T>
fn clone(&self) -> Identifier<T>
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<T: Debug> Debug for Identifier<T>
impl<T: Debug> Debug for Identifier<T>
source§impl<'de, T> Deserialize<'de> for Identifier<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Identifier<T>where T: Deserialize<'de>,
source§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
source§impl<T: Display> Display for Identifier<T>
impl<T: Display> Display for Identifier<T>
source§impl<T> From<(Ratio<BigInt>, T)> for Identifier<T>
impl<T> From<(Ratio<BigInt>, T)> for Identifier<T>
source§fn from((rational, value): (BigRational, T)) -> Self
fn from((rational, value): (BigRational, T)) -> Self
Converts to this type from the input type.
source§impl<T: Hash> Hash for Identifier<T>
impl<T: Hash> Hash for Identifier<T>
source§impl<T: Ord> Ord for Identifier<T>
impl<T: Ord> Ord for Identifier<T>
source§impl<T: PartialEq> PartialEq<Identifier<T>> for Identifier<T>
impl<T: PartialEq> PartialEq<Identifier<T>> for Identifier<T>
source§fn eq(&self, other: &Identifier<T>) -> bool
fn eq(&self, other: &Identifier<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: Ord> PartialOrd<Identifier<T>> for Identifier<T>
impl<T: Ord> PartialOrd<Identifier<T>> for Identifier<T>
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 moresource§impl<T> Serialize for Identifier<T>where
T: Serialize,
impl<T> Serialize for Identifier<T>where T: Serialize,
impl<T: Eq> Eq for Identifier<T>
impl<T> StructuralEq for Identifier<T>
impl<T> StructuralPartialEq for Identifier<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Identifier<T>where T: RefUnwindSafe,
impl<T> Send for Identifier<T>where T: Send,
impl<T> Sync for Identifier<T>where T: Sync,
impl<T> Unpin for Identifier<T>where T: Unpin,
impl<T> UnwindSafe for Identifier<T>where T: UnwindSafe,
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