pub enum ChangeEvent<T> {
InsertAt {
event_id: Id,
max_value: T,
value: T,
index: usize,
},
RemoveAt {
event_id: Id,
max_value: T,
value: T,
index: usize,
},
CreateNode {
event_id: Id,
max_value: T,
},
RemoveNode {
event_id: Id,
max_value: T,
},
SplitNode {
event_id: Id,
max_value: T,
split_index: usize,
},
}Variants§
InsertAt
Describes value insert event.
Fields
§
max_value: TMax value that is used to identify node to remove value in.
§
value: TValue that is inserted itself.
RemoveAt
Describes value remove event.
Fields
§
max_value: TMax value that is used to identify node to remove value from.
§
value: TValue that is removed itself.
CreateNode
Describes node creation event.
RemoveNode
Describes node removal event.
SplitNode
Describes node split event.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for ChangeEvent<T>
impl<T: Clone> Clone for ChangeEvent<T>
Source§fn clone(&self) -> ChangeEvent<T>
fn clone(&self) -> ChangeEvent<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChangeEvent<T>
impl<T: Debug> Debug for ChangeEvent<T>
Source§impl<K, V> From<ChangeEvent<OrdMultiPair<K, V>>> for ChangeEvent<Pair<K, V>>
Available on crate feature multimap only.
impl<K, V> From<ChangeEvent<OrdMultiPair<K, V>>> for ChangeEvent<Pair<K, V>>
Available on crate feature
multimap only.Source§fn from(ev: ChangeEvent<OrdMultiPair<K, V>>) -> Self
fn from(ev: ChangeEvent<OrdMultiPair<K, V>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> Freeze for ChangeEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for ChangeEvent<T>where
T: RefUnwindSafe,
impl<T> Send for ChangeEvent<T>where
T: Send,
impl<T> Sync for ChangeEvent<T>where
T: Sync,
impl<T> Unpin for ChangeEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for ChangeEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ChangeEvent<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