#[repr(C)]pub struct SetVTable {
pub init_in_place_with_capacity: unsafe extern "C" fn(PtrUninit, usize) -> PtrMut,
pub insert: unsafe extern "C" fn(PtrMut, PtrMut) -> bool,
pub len: unsafe extern "C" fn(PtrConst) -> usize,
pub contains: unsafe extern "C" fn(PtrConst, PtrConst) -> bool,
pub iter_vtable: IterVTable<PtrConst>,
pub from_slice: Option<unsafe extern "C" fn(PtrUninit, *mut u8, usize) -> PtrMut>,
}Expand description
Virtual table for a Set<T>
Fields§
§init_in_place_with_capacity: unsafe extern "C" fn(PtrUninit, usize) -> PtrMut§insert: unsafe extern "C" fn(PtrMut, PtrMut) -> boolcf. SetInsertFn
len: unsafe extern "C" fn(PtrConst) -> usizecf. SetLenFn
contains: unsafe extern "C" fn(PtrConst, PtrConst) -> boolcf. SetContainsFn
iter_vtable: IterVTable<PtrConst>Virtual table for set iterator operations
from_slice: Option<unsafe extern "C" fn(PtrUninit, *mut u8, usize) -> PtrMut>cf. SetFromSliceFn - optional optimization for batch construction
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SetVTable
impl RefUnwindSafe for SetVTable
impl Send for SetVTable
impl Sync for SetVTable
impl Unpin for SetVTable
impl UnsafeUnpin for SetVTable
impl UnwindSafe for SetVTable
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