Enum nannou::image::pnm::PNMSubtype [−][src]
pub enum PNMSubtype { Bitmap(SampleEncoding), Graymap(SampleEncoding), Pixmap(SampleEncoding), ArbitraryMap, }
Expand description
Denotes the category of the magic number
DEPRECATED: The name of this enum will be changed to PnmSubtype
.
TODO: rename to PnmSubtype
.
Variants
Bitmap(SampleEncoding)
Magic numbers P1 and P4
Graymap(SampleEncoding)
Magic numbers P2 and P5
Pixmap(SampleEncoding)
Magic numbers P3 and P6
Magic number P7
Implementations
Get the two magic constant bytes corresponding to this format subtype.
Whether samples are stored as binary or as decimal ascii
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PNMSubtype
impl Send for PNMSubtype
impl Sync for PNMSubtype
impl Unpin for PNMSubtype
impl UnwindSafe for PNMSubtype
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V