[−][src]Enum crdts::lseq::Op
Operations that can be performed on an LSeq tree
Variants
Insert an element
Fields of Insert
id: Identifier<A>
Identifier to insert at
dot: Dot<A>
clock of site that issued insertion
val: T
Element to insert
Delete an element
Fields of Delete
remote: Dot<A>
The original clock information of the insertion we're removing
id: Identifier<A>
Identifier to remove
dot: Dot<A>
id of site that issued delete
Implementations
impl<T, A: Actor> Op<T, A>
[src]
pub fn dot(&self) -> &Dot<A>
[src]
Return the Dot originating the operation
pub fn id(&self) -> &Identifier<A>
[src]
Return the Identifier contained in the operation
Trait Implementations
impl<T: Clone, A: Clone + Actor> Clone for Op<T, A>
[src]
impl<T: Debug, A: Debug + Actor> Debug for Op<T, A>
[src]
impl<'de, T, A: Actor> Deserialize<'de> for Op<T, A> where
T: Deserialize<'de>,
A: Deserialize<'de>,
[src]
T: Deserialize<'de>,
A: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T: Eq, A: Eq + Actor> Eq for Op<T, A>
[src]
impl<T: Hash, A: Hash + Actor> Hash for Op<T, 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<T: PartialEq, A: PartialEq + Actor> PartialEq<Op<T, A>> for Op<T, A>
[src]
impl<T: PartialOrd, A: PartialOrd + Actor> PartialOrd<Op<T, A>> for Op<T, A>
[src]
fn partial_cmp(&self, other: &Op<T, A>) -> Option<Ordering>
[src]
fn lt(&self, other: &Op<T, A>) -> bool
[src]
fn le(&self, other: &Op<T, A>) -> bool
[src]
fn gt(&self, other: &Op<T, A>) -> bool
[src]
fn ge(&self, other: &Op<T, A>) -> bool
[src]
impl<T, A: Actor> Serialize for Op<T, A> where
T: Serialize,
A: Serialize,
[src]
T: Serialize,
A: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<T, A: Actor> StructuralEq for Op<T, A>
[src]
impl<T, A: Actor> StructuralPartialEq for Op<T, A>
[src]
Auto Trait Implementations
impl<T, A> RefUnwindSafe for Op<T, A> where
A: RefUnwindSafe,
T: RefUnwindSafe,
A: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, A> Send for Op<T, A> where
A: Send,
T: Send,
A: Send,
T: Send,
impl<T, A> Sync for Op<T, A> where
A: Sync,
T: Sync,
A: Sync,
T: Sync,
impl<T, A> Unpin for Op<T, A> where
A: Unpin,
T: Unpin,
A: Unpin,
T: Unpin,
impl<T, A> UnwindSafe for Op<T, A> where
A: UnwindSafe,
T: UnwindSafe,
A: UnwindSafe,
T: 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>,