Struct image_texel::layout::Bytes
source · [−]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: usize
Implementations
sourceimpl Bytes
impl Bytes
sourcepub fn from_layout(layout: impl Layout) -> Self
pub fn from_layout(layout: impl Layout) -> Self
Forget all layout semantics except the number of bytes used.
Trait Implementations
sourceimpl From<MatrixBytes> for Bytes
impl From<MatrixBytes> for Bytes
sourcefn from(layout: MatrixBytes) -> Self
fn from(layout: MatrixBytes) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Bytes
impl Send for Bytes
impl Sync for Bytes
impl Unpin for Bytes
impl UnwindSafe for Bytes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more