pub(crate) struct RemoveInfo {
pub remove_index: usize,
pub new_width: usize,
pub new_count: usize,
pub new_bytes_len: usize,
}Expand description
Pre-computed information about a pending removal operation.
Do not create one of these directly; call get_remove_info() or get_sorted_pop_info().
Fields§
§remove_index: usizeThe index of the item to be removed.
new_width: usizeThe new item width after insertion.
new_count: usizeThe new number of items in the vector: self.len() after insertion.
new_bytes_len: usizeThe new number of bytes required for the entire slice (self.data.len() + 1).
Auto Trait Implementations§
impl Freeze for RemoveInfo
impl RefUnwindSafe for RemoveInfo
impl Send for RemoveInfo
impl Sync for RemoveInfo
impl Unpin for RemoveInfo
impl UnsafeUnpin for RemoveInfo
impl UnwindSafe for RemoveInfo
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