Struct crdts::identifier::Identifier[][src]

pub struct Identifier<T>(_);

A dense Identifier, if you have two identifiers that are different, we can always construct an identifier between them.

Implementations

impl<T: Clone + Ord + Eq> Identifier<T>[src]

pub fn value(&self) -> &T[src]

Get a reference to the value this entry represents.

pub fn into_value(self) -> T[src]

Get the value this entry represents, consuming the entry.

pub fn between(low: Option<&Self>, high: Option<&Self>, marker: T) -> Self[src]

Construct an entry between low and high holding the given element.

Trait Implementations

impl<T: Arbitrary> Arbitrary for Identifier<T>[src]

impl<T: Clone> Clone for Identifier<T>[src]

impl<T: Debug> Debug for Identifier<T>[src]

impl<'de, T> Deserialize<'de> for Identifier<T> where
    T: Deserialize<'de>, 
[src]

impl<T: Display> Display for Identifier<T>[src]

impl<T: Eq> Eq for Identifier<T>[src]

impl<T> From<(Ratio<BigInt>, T)> for Identifier<T>[src]

impl<T: Hash> Hash for Identifier<T>[src]

impl<T: Ord> Ord for Identifier<T>[src]

impl<T: PartialEq> PartialEq<Identifier<T>> for Identifier<T>[src]

impl<T: Ord> PartialOrd<Identifier<T>> for Identifier<T>[src]

impl<T> Serialize for Identifier<T> where
    T: Serialize
[src]

impl<T> StructuralEq for Identifier<T>[src]

impl<T> StructuralPartialEq for Identifier<T>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,