Struct generic_btree::MoveEvent
source · pub struct MoveEvent<'a, T> {
pub target_leaf: Option<ArenaIndex>,
pub elem: &'a T,
}Expand description
The move event of an element.
It’s used to track the which leaf node an element is in.
The delete events are not guaranteed to be called. The events are missing when:
- The tree is dropped
- Or, when draining a range, the elements from the start/end leaf node
Fields§
§target_leaf: Option<ArenaIndex>If this is None, it means the element is deleted from the tree
elem: &'a TImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> RefUnwindSafe for MoveEvent<'a, T>where T: RefUnwindSafe,
impl<'a, T> Send for MoveEvent<'a, T>where T: Sync,
impl<'a, T> Sync for MoveEvent<'a, T>where T: Sync,
impl<'a, T> Unpin for MoveEvent<'a, T>
impl<'a, T> UnwindSafe for MoveEvent<'a, T>where T: RefUnwindSafe,
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