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: 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 InsertInfo
impl RefUnwindSafe for InsertInfo
impl Send for InsertInfo
impl Sync for InsertInfo
impl Unpin for InsertInfo
impl UnsafeUnpin 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