pub struct Bgr555(/* private fields */);
Expand description
Bgr555 color.
Use the methods provided by the RgbColor
trait to access
individual color channels and predefined color constants.
See the module-level documentation for more information about conversion between this type and raw data.
Implementations§
Trait Implementations§
Source§impl From<BinaryColor> for Bgr555
impl From<BinaryColor> for Bgr555
Source§fn from(color: BinaryColor) -> Self
fn from(color: BinaryColor) -> Self
Converts to this type from the input type.
Source§impl Ord for Bgr555
impl Ord for Bgr555
Source§impl PartialOrd for Bgr555
impl PartialOrd for Bgr555
impl Copy for Bgr555
impl Eq for Bgr555
impl StructuralPartialEq for Bgr555
Auto Trait Implementations§
impl Freeze for Bgr555
impl RefUnwindSafe for Bgr555
impl Send for Bgr555
impl Sync for Bgr555
impl Unpin for Bgr555
impl UnwindSafe for Bgr555
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: 2 bytes