#[repr(C)]pub struct HeapString {
pub ptr: *mut u8,
pub len: usize,
}Expand description
A heap allocated string
The caller should call sodot_dealloc_heap_string on the struct after use.
Fields§
§ptr: *mut u8§len: usizeImplementations§
Trait Implementations§
Source§impl AsRef<str> for HeapString
impl AsRef<str> for HeapString
Source§impl Debug for HeapString
impl Debug for HeapString
Auto Trait Implementations§
impl Freeze for HeapString
impl RefUnwindSafe for HeapString
impl !Send for HeapString
impl !Sync for HeapString
impl Unpin for HeapString
impl UnwindSafe for HeapString
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