#[repr(transparent)]pub struct Color(pub [u8; 4]);Tuple Fields§
§0: [u8; 4]Implementations§
Source§impl<'a> Color
impl<'a> Color
pub fn new(r: u8, g: u8, b: u8, a: u8) -> Self
pub fn r(&self) -> u8
pub fn set_r(&mut self, x: u8)
pub fn g(&self) -> u8
pub fn set_g(&mut self, x: u8)
pub fn b(&self) -> u8
pub fn set_b(&mut self, x: u8)
pub fn a(&self) -> u8
pub fn set_a(&mut self, x: u8)
Trait Implementations§
Source§impl<'a> Verifiable for Color
impl<'a> Verifiable for Color
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos in the verifier’s buffer.
Should not need to be called directly.impl Copy for Color
impl SimpleToVerifyInSlice for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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