pub(crate) struct Vtable {
pub clone: unsafe fn(_: &AtomicPtr<()>, _: *const u8, _: usize) -> Bytes,
pub to_vec: unsafe fn(_: &AtomicPtr<()>, _: *const u8, _: usize) -> Vec<u8>,
pub is_unique: unsafe fn(_: &AtomicPtr<()>) -> bool,
pub drop: unsafe fn(_: &mut AtomicPtr<()>, _: *const u8, _: usize),
}
Fields§
§clone: unsafe fn(_: &AtomicPtr<()>, _: *const u8, _: usize) -> Bytes
fn(data, ptr, len)
to_vec: unsafe fn(_: &AtomicPtr<()>, _: *const u8, _: usize) -> Vec<u8>
fn(data, ptr, len)
takes Bytes
to value
is_unique: unsafe fn(_: &AtomicPtr<()>) -> bool
fn(data)
drop: unsafe fn(_: &mut AtomicPtr<()>, _: *const u8, _: usize)
fn(data, ptr, len)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Vtable
impl Send for Vtable
impl Sync for Vtable
impl Unpin for Vtable
impl UnwindSafe for Vtable
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