#[repr(C)]pub struct NrBytes {
pub ptr: *const u8,
pub len: u64,
}Expand description
A byte slice with a pointer and length.
This struct is #[repr(C)] and ABI-stable.
Fields§
§ptr: *const u8§len: u64Implementations§
Source§impl NrBytes
impl NrBytes
Sourcepub fn from_slice(s: &[u8]) -> Self
pub fn from_slice(s: &[u8]) -> Self
Creates a borrowed ABI byte view.
Trait Implementations§
impl Copy for NrBytes
impl Send for NrBytes
impl Sync for NrBytes
Auto Trait Implementations§
impl Freeze for NrBytes
impl RefUnwindSafe for NrBytes
impl Unpin for NrBytes
impl UnsafeUnpin for NrBytes
impl UnwindSafe for NrBytes
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