Struct zerovec::flexzerovec::slice::InsertInfo
source · pub(crate) struct InsertInfo {
pub item_bytes: [u8; 8],
pub new_width: usize,
pub new_count: usize,
pub new_bytes_len: usize,
}
Expand description
Pre-computed information about a pending insertion operation.
Do not create one of these directly; call get_insert_info()
.
Fields§
§item_bytes: [u8; 8]
The bytes to be inserted, with zero-fill.
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 InsertInfo
impl RefUnwindSafe for InsertInfo
impl Send for InsertInfo
impl Sync for InsertInfo
impl Unpin for InsertInfo
impl UnwindSafe for InsertInfo
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