Struct playdate_rs_sys::LCDColor
source · #[repr(transparent)]pub struct LCDColor(_);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.
source§impl PartialEq<LCDColor> for LCDColor
impl PartialEq<LCDColor> for LCDColor
impl Eq for LCDColor
impl StructuralEq for LCDColor
impl StructuralPartialEq for LCDColor
Auto Trait Implementations§
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