Enum image::flat::NormalForm [−][src]
pub enum NormalForm { Unaliased, PixelPacked, ImagePacked, RowMajorPacked, ColumnMajorPacked, }
Different normal forms of buffers.
A normal form is an unaliased buffer with some additional constraints. The ÌmageBuffer
uses
row major form with packed samples.
Variants
No pixel aliases another.
Unaliased also guarantees that all index calculations in the image bounds using
dim_index*dim_stride
(such as x*width_stride + y*height_stride
) do not overflow.
At least pixels are packed.
Images of these types can wrap [T]
-slices into the standard color types. This is a
precondition for GenericImage
which requires by-reference access to pixels.
All samples are packed.
This is orthogonal to PixelPacked
. It requires that there are no holes in the image but
it is not necessary that the pixel samples themselves are adjacent. An example of this
behaviour is a planar image layout.
The samples are in row-major form and all samples are packed.
In addition to PixelPacked
and ImagePacked
this also asserts that the pixel matrix is
in row-major form.
The samples are in column-major form and all samples are packed.
In addition to PixelPacked
and ImagePacked
this also asserts that the pixel matrix is
in column-major form.
Trait Implementations
impl Clone for NormalForm
[src]
fn clone(&self) -> NormalForm
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for NormalForm
[src]
impl Debug for NormalForm
[src]
impl Eq for NormalForm
[src]
impl Hash for NormalForm
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<NormalForm> for NormalForm
[src]
fn eq(&self, other: &NormalForm) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<NormalForm> for NormalForm
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
Compares the logical preconditions.
a < b
if the normal form a
has less preconditions than b
.
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for NormalForm
[src]
impl StructuralPartialEq for NormalForm
[src]
Auto Trait Implementations
impl RefUnwindSafe for NormalForm
impl Send for NormalForm
impl Sync for NormalForm
impl Unpin for NormalForm
impl UnwindSafe for NormalForm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,