#[repr(C, align(2))]pub struct RGB565 {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2], u8>,
}Fields§
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2], u8>Implementations§
Source§impl RGB565
impl RGB565
pub fn r(&self) -> c_ushort
pub fn set_r(&mut self, val: c_ushort)
pub fn g(&self) -> c_ushort
pub fn set_g(&mut self, val: c_ushort)
pub fn b(&self) -> c_ushort
pub fn set_b(&mut self, val: c_ushort)
pub fn new_bitfield_1( r: c_ushort, g: c_ushort, b: c_ushort, ) -> __BindgenBitfieldUnit<[u8; 2], u8>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RGB565
impl RefUnwindSafe for RGB565
impl Send for RGB565
impl Sync for RGB565
impl Unpin for RGB565
impl UnwindSafe for RGB565
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