#[repr(C)]pub struct Refstr {
pub ptr: *const u8,
pub len: usize,
}Expand description
FFI-safe wrapper for &str.
Fields§
§ptr: *const u8§len: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Refstr
impl RefUnwindSafe for Refstr
impl !Send for Refstr
impl !Sync for Refstr
impl Unpin for Refstr
impl UnsafeUnpin for Refstr
impl UnwindSafe for Refstr
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