pub struct MatrixBytes { /* private fields */ }Expand description
A matrix of packed texels (channel groups).
This is a simple layout of exactly width·height homogeneous pixels.
Implementations§
Source§impl MatrixBytes
impl MatrixBytes
pub fn empty(element: TexelLayout) -> Self
pub fn from_width_height( element: TexelLayout, first_dim: usize, second_dim: usize, ) -> Option<Self>
Sourcepub const fn element(&self) -> TexelLayout
pub const fn element(&self) -> TexelLayout
Get the element type of this matrix.
Trait Implementations§
Source§impl Clone for MatrixBytes
impl Clone for MatrixBytes
Source§fn clone(&self) -> MatrixBytes
fn clone(&self) -> MatrixBytes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MatrixBytes
Source§impl Debug for MatrixBytes
impl Debug for MatrixBytes
Source§impl<L: MatrixLayout> Decay<L> for MatrixBytes
Remove the strong typing for dynamic channel type information.
impl<L: MatrixLayout> Decay<L> for MatrixBytes
Remove the strong typing for dynamic channel type information.
fn decay(from: L) -> MatrixBytes
impl Eq for MatrixBytes
Source§impl<P> From<Matrix<P>> for MatrixBytes
impl<P> From<Matrix<P>> for MatrixBytes
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.
Source§impl Hash for MatrixBytes
impl Hash for MatrixBytes
Source§impl PartialEq for MatrixBytes
impl PartialEq for MatrixBytes
Source§fn eq(&self, other: &MatrixBytes) -> bool
fn eq(&self, other: &MatrixBytes) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MatrixBytes
Auto Trait Implementations§
impl Freeze for MatrixBytes
impl RefUnwindSafe for MatrixBytes
impl Send for MatrixBytes
impl Sync for MatrixBytes
impl Unpin for MatrixBytes
impl UnsafeUnpin for MatrixBytes
impl UnwindSafe for MatrixBytes
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