#[repr(C)]pub struct wasm_byte_vec_t { /* private fields */ }
Expand description
Implementations§
Source§impl wasm_byte_vec_t
impl wasm_byte_vec_t
Sourcepub fn set_buffer(&mut self, buffer: Box<[u8]>)
pub fn set_buffer(&mut self, buffer: Box<[u8]>)
Sets the data buffer of self
to buffer
and leaks the current data buffer.
Sourcepub fn as_uninit_slice(&mut self) -> &mut [MaybeUninit<u8>]
pub fn as_uninit_slice(&mut self) -> &mut [MaybeUninit<u8>]
Returns the underlying data as MaybeUninit
slice.
Trait Implementations§
Source§impl Clone for wasm_byte_vec_t
impl Clone for wasm_byte_vec_t
Source§impl Drop for wasm_byte_vec_t
impl Drop for wasm_byte_vec_t
Auto Trait Implementations§
impl Freeze for wasm_byte_vec_t
impl RefUnwindSafe for wasm_byte_vec_t
impl !Send for wasm_byte_vec_t
impl !Sync for wasm_byte_vec_t
impl Unpin for wasm_byte_vec_t
impl UnwindSafe for wasm_byte_vec_t
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