#[repr(C)]pub struct FfiString {
pub data: *mut u8,
pub len: usize,
}Expand description
FFI-safe UTF-8 string.
data points to a heap-allocated byte array of len bytes.
The bytes are valid UTF-8 but are not necessarily null-terminated
beyond len; always use len to determine the string length.
Fields§
§data: *mut u8§len: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FfiString
impl RefUnwindSafe for FfiString
impl Unpin for FfiString
impl UnsafeUnpin for FfiString
impl UnwindSafe for FfiString
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