Struct image_texel::layout::MatrixBytes
source · [−]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
sourceimpl 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
sourceimpl Clone for MatrixBytes
impl Clone for MatrixBytes
sourcefn clone(&self) -> MatrixBytes
fn clone(&self) -> MatrixBytes
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MatrixBytes
impl Debug for MatrixBytes
sourceimpl<L: MatrixLayout> Decay<L> for MatrixBytes
impl<L: MatrixLayout> Decay<L> for MatrixBytes
Remove the strong typing for dynamic channel type information.
fn decay(from: L) -> MatrixBytes
sourceimpl<P> From<Matrix<P>> for MatrixBytes
impl<P> From<Matrix<P>> for MatrixBytes
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.
sourceimpl Hash for MatrixBytes
impl Hash for MatrixBytes
sourceimpl PartialEq<MatrixBytes> for MatrixBytes
impl PartialEq<MatrixBytes> for MatrixBytes
sourcefn eq(&self, other: &MatrixBytes) -> bool
fn eq(&self, other: &MatrixBytes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MatrixBytes) -> bool
fn ne(&self, other: &MatrixBytes) -> bool
This method tests for !=
.
sourceimpl Take for MatrixBytes
impl Take for MatrixBytes
sourceimpl<P> TryMend<MatrixBytes> for Texel<P>
impl<P> TryMend<MatrixBytes> for Texel<P>
Try to use the matrix with a specific pixel type.
type Into = Matrix<P>
type Err = MismatchedPixelError
fn try_mend(self, matrix: &MatrixBytes) -> Result<Matrix<P>, Self::Err>
impl Copy for MatrixBytes
impl Eq for MatrixBytes
impl StructuralEq for MatrixBytes
impl StructuralPartialEq for MatrixBytes
Auto Trait Implementations
impl RefUnwindSafe for MatrixBytes
impl Send for MatrixBytes
impl Sync for MatrixBytes
impl Unpin for MatrixBytes
impl UnwindSafe for MatrixBytes
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