#[repr(transparent)]pub struct Rgb15(pub u16);
Expand description
Represents a pixel on the GBA.
This is stored as a 15 bit number as 0b0bbbbbgggggrrrrr
. You can see what would happen to your true-colour
value by using the utility site in the agbrs.dev website.
Tuple Fields§
§0: u16
Implementations§
Trait Implementations§
impl Copy for Rgb15
impl Eq for Rgb15
impl StructuralPartialEq for Rgb15
Auto Trait Implementations§
impl Freeze for Rgb15
impl RefUnwindSafe for Rgb15
impl Send for Rgb15
impl Sync for Rgb15
impl Unpin for Rgb15
impl UnwindSafe for Rgb15
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)