pub struct Gray8(/* private fields */);
Expand description
8 bit grayscale color.
Implementations§
Trait Implementations§
Source§impl ColorMapping<Gray8> for Gray8
impl ColorMapping<Gray8> for Gray8
Source§fn char_to_color(c: char) -> Self
fn char_to_color(c: char) -> Self
Converts a char into a color of type
C
.Source§fn color_to_char(color: Gray8) -> char
fn color_to_char(color: Gray8) -> char
Converts a color of type
C
into a char.Source§impl From<BinaryColor> for Gray8
impl From<BinaryColor> for Gray8
Source§fn from(color: BinaryColor) -> Self
fn from(color: BinaryColor) -> Self
Converts to this type from the input type.
Source§impl Ord for Gray8
impl Ord for Gray8
Source§impl PartialOrd for Gray8
impl PartialOrd for Gray8
impl Copy for Gray8
impl Eq for Gray8
impl StructuralPartialEq for Gray8
Auto Trait Implementations§
impl Freeze for Gray8
impl RefUnwindSafe for Gray8
impl Send for Gray8
impl Sync for Gray8
impl Unpin for Gray8
impl UnwindSafe for Gray8
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<C> IntoStorage for C
impl<C> IntoStorage for C
Source§type Storage = <<C as PixelColor>::Raw as RawData>::Storage
type Storage = <<C as PixelColor>::Raw as RawData>::Storage
The underlying storage type for the pixel color
Source§fn into_storage(self) -> <C as IntoStorage>::Storage
fn into_storage(self) -> <C as IntoStorage>::Storage
Convert the
PixelColor
into its raw storage formLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte