#[repr(C)]pub struct SliceVTable {
pub len: SliceLenFn,
pub as_ptr: SliceAsPtrFn,
pub as_mut_ptr: SliceAsMutPtrFn,
}
Expand description
Virtual table for a slice-like type (like Vec<T>
,
but also HashSet<T>
, etc.)
Fields§
§len: SliceLenFn
Number of items in the slice
as_ptr: SliceAsPtrFn
Get pointer to the data buffer of the slice.
as_mut_ptr: SliceAsMutPtrFn
Get mutable pointer to the data buffer of the slice.
Implementations§
Source§impl SliceVTable
impl SliceVTable
Sourcepub const fn builder() -> SliceVTableBuilder
pub const fn builder() -> SliceVTableBuilder
Returns a builder for SliceVTable
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