Struct zerovec::flexzerovec::slice::RemoveInfo
source · 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: usize
The index of the item to be removed.
new_width: usize
The new item width after insertion.
new_count: usize
The new number of items in the vector: self.len() after insertion.
new_bytes_len: usize
The 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 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