[−][src]Struct crdts::lseq::ident::Identifier
A tree identifier uniquely locates an element in an LSeq tree. It represents the path that needs to be taken in order to reach the element. At each level we store the index of the child tree node as well as the id of the site that inserted that node. This resolves conflicts where two sites decide to pick the same child index to allocate a fresh node
Trait Implementations
impl<A: Arbitrary + Actor> Arbitrary for Identifier<A>
[src]
fn arbitrary<G: Gen>(g: &mut G) -> Identifier<A>
[src]
fn shrink(&self) -> Box<dyn Iterator<Item = Self>>
[src]
impl<A: Clone + Actor> Clone for Identifier<A>
[src]
fn clone(&self) -> Identifier<A>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Debug + Actor> Debug for Identifier<A>
[src]
impl<'de, A: Actor> Deserialize<'de> for Identifier<A> where
A: Deserialize<'de>,
[src]
A: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<A: Eq + Actor> Eq for Identifier<A>
[src]
impl<A: Hash + Actor> Hash for Identifier<A>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A: Ord + Actor> Ord for Identifier<A>
[src]
fn cmp(&self, other: &Identifier<A>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<A: PartialEq + Actor> PartialEq<Identifier<A>> for Identifier<A>
[src]
fn eq(&self, other: &Identifier<A>) -> bool
[src]
fn ne(&self, other: &Identifier<A>) -> bool
[src]
impl<A: PartialOrd + Actor> PartialOrd<Identifier<A>> for Identifier<A>
[src]
fn partial_cmp(&self, other: &Identifier<A>) -> Option<Ordering>
[src]
fn lt(&self, other: &Identifier<A>) -> bool
[src]
fn le(&self, other: &Identifier<A>) -> bool
[src]
fn gt(&self, other: &Identifier<A>) -> bool
[src]
fn ge(&self, other: &Identifier<A>) -> bool
[src]
impl<A: Actor> Serialize for Identifier<A> where
A: Serialize,
[src]
A: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<A: Actor> StructuralEq for Identifier<A>
[src]
impl<A: Actor> StructuralPartialEq for Identifier<A>
[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for Identifier<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for Identifier<A> where
A: Send,
A: Send,
impl<A> Sync for Identifier<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Identifier<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Identifier<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Member for T where
T: Clone + Eq + Hash,
[src]
T: Clone + Eq + Hash,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,