#[repr(i8)]pub enum Assoc {
After = 0,
Before = -1,
}Expand description
Association type used by StickyIndex. In general StickyIndex refers to a cursor
space between two elements (eg. “ab.c” where “abc” is our string and . is the StickyIndex
placement). However in a situation when another peer is updating a collection concurrently,
a new set of elements may be inserted into that space, expanding it in the result. In such case
Assoc tells us if the StickyIndex should stick to location before or after referenced index.
Variants§
After = 0
The corresponding StickyIndex points to space after the referenced ID.
Before = -1
The corresponding StickyIndex points to space before the referenced ID.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Assoc
impl<'de> Deserialize<'de> for Assoc
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 Ord for Assoc
impl Ord for Assoc
source§impl PartialEq for Assoc
impl PartialEq for Assoc
source§impl PartialOrd for Assoc
impl PartialOrd for Assoc
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 Copy for Assoc
impl Eq for Assoc
impl StructuralPartialEq for Assoc
Auto Trait Implementations§
impl Freeze for Assoc
impl RefUnwindSafe for Assoc
impl Send for Assoc
impl Sync for Assoc
impl Unpin for Assoc
impl UnwindSafe for Assoc
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)