#[repr(C)]pub struct Bytes {
pub pointer: *const u8,
pub length: usize,
}Expand description
Borrowed bytes; null is accepted only with a zero length. Identifier fields contain UTF-8 names without NUL; ordinary data fields are unrestricted bytes.
Fields§
§pointer: *const u8Start of readable input storage; NULL is valid only when length is zero.
length: usizeNumber of readable bytes starting at pointer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Send for Bytes
impl !Sync for Bytes
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Unpin for Bytes
impl UnsafeUnpin for Bytes
impl UnwindSafe for Bytes
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