#[repr(C)]pub struct SliceVTable {
pub len: unsafe fn(PtrConst) -> usize,
pub as_ptr: unsafe fn(PtrConst) -> PtrConst,
pub as_mut_ptr: unsafe fn(PtrMut) -> PtrMut,
}Expand description
Virtual table for a slice-like type (like Vec<T>,
but also HashSet<T>, etc.)
Fields§
§len: unsafe fn(PtrConst) -> usizeNumber of items in the slice
as_ptr: unsafe fn(PtrConst) -> PtrConstGet pointer to the data buffer of the slice.
as_mut_ptr: unsafe fn(PtrMut) -> PtrMutGet mutable pointer to the data buffer of the slice.
Implementations§
Trait Implementations§
Source§impl Clone for SliceVTable
impl Clone for SliceVTable
Source§fn clone(&self) -> SliceVTable
fn clone(&self) -> SliceVTable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SliceVTable
impl Debug for SliceVTable
impl Copy for SliceVTable
Auto Trait Implementations§
impl Freeze for SliceVTable
impl RefUnwindSafe for SliceVTable
impl Send for SliceVTable
impl Sync for SliceVTable
impl Unpin for SliceVTable
impl UnwindSafe for SliceVTable
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