pub struct Bytes(pub usize);Expand description
A byte layout that only describes the user bytes.
This is a minimal implementation of the basic Layout trait. It does not provide any
additional semantics for the buffer bytes described by it. All other layouts may be converted
into this layout.
Tuple Fields§
§0: usizeImplementations§
Trait Implementations§
impl Copy for Bytes
impl Eq for Bytes
Source§impl From<MatrixBytes> for Bytes
impl From<MatrixBytes> for Bytes
Source§fn from(layout: MatrixBytes) -> Self
fn from(layout: MatrixBytes) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Bytes
Auto Trait Implementations§
impl Freeze for Bytes
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync 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