Struct embedded_graphics::pixelcolor::raw::RawU8 [−][src]
pub struct RawU8(_);
Expand description
8 bits per pixel raw data.
RawU8
is internally stored in an u8
. It can be constructed from an u8
by using the new
method or by calling RawU8::from(u8_value)
. To convert a RawU8
back into a u8
the into_inner
method can be used.
See the module-level documentation for more information.
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Converts a color into a byte array with big endian byte order.
Converts a color into a byte array with little endian byte order.
Converts a color into a byte array with native byte order.
Auto Trait Implementations
impl RefUnwindSafe for RawU8
impl UnwindSafe for RawU8
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
type Output = T
type Output = T
Should always be Self
Casts the value.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
Casts the value.
pub fn vzip(self) -> V
Casts the value.