#[repr(C)]pub struct NativeAbiOwnedBytes {
pub ptr: *mut u8,
pub len: usize,
pub cap: usize,
}Expand description
An owned byte buffer transferred across the ABI, freed by its allocator.
Fields§
§ptr: *mut u8Pointer to the first byte, or null when empty.
len: usizeNumber of valid bytes addressed by ptr.
cap: usizeAllocated capacity, needed to reconstruct the owning Vec.
Implementations§
Trait Implementations§
Source§impl Clone for NativeAbiOwnedBytes
impl Clone for NativeAbiOwnedBytes
Source§fn clone(&self) -> NativeAbiOwnedBytes
fn clone(&self) -> NativeAbiOwnedBytes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NativeAbiOwnedBytes
Auto Trait Implementations§
impl !Send for NativeAbiOwnedBytes
impl !Sync for NativeAbiOwnedBytes
impl Freeze for NativeAbiOwnedBytes
impl RefUnwindSafe for NativeAbiOwnedBytes
impl Unpin for NativeAbiOwnedBytes
impl UnsafeUnpin for NativeAbiOwnedBytes
impl UnwindSafe for NativeAbiOwnedBytes
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