pub struct LCDColor(/* private fields */);Implementations§
Source§impl LCDColor
impl LCDColor
Sourcepub fn as_solid_color(&self) -> Option<LCDSolidColor>
pub fn as_solid_color(&self) -> Option<LCDSolidColor>
Convert the LCDColor to a LCDSolidColor
Sourcepub unsafe fn as_pattern(&self) -> Option<LCDPattern>
pub unsafe fn as_pattern(&self) -> Option<LCDPattern>
Convert the LCDColor to a LCDPattern
§Safety
This function is unsafe because it casts the LCDColor into a raw pointer and dereferences it. The caller must ensure that the pointer is valid before calling this method.
Trait Implementations§
Source§impl From<&[u8; 16]> for LCDColor
impl From<&[u8; 16]> for LCDColor
Source§fn from(value: &LCDPattern) -> Self
fn from(value: &LCDPattern) -> Self
Converts to this type from the input type.
Source§impl From<LCDSolidColor> for LCDColor
impl From<LCDSolidColor> for LCDColor
Source§fn from(value: LCDSolidColor) -> Self
fn from(value: LCDSolidColor) -> Self
Converts to this type from the input type.
impl Eq for LCDColor
impl StructuralPartialEq for LCDColor
Auto Trait Implementations§
impl Freeze for LCDColor
impl RefUnwindSafe for LCDColor
impl Send for LCDColor
impl Sync for LCDColor
impl Unpin for LCDColor
impl UnwindSafe for LCDColor
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