#[repr(C)]
pub union ClearColor {
pub float32: [f32; 4],
pub sint32: [i32; 4],
pub uint32: [u32; 4],
}
Expand description
A clear color union, which can be either f32
, i32
, or u32
.
Fields§
§float32: [f32; 4]
f32
variant
sint32: [i32; 4]
i32
variant
uint32: [u32; 4]
u32
variant
Trait Implementations§
Source§impl Clone for ClearColor
impl Clone for ClearColor
Source§fn clone(&self) -> ClearColor
fn clone(&self) -> ClearColor
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClearColor
impl Debug for ClearColor
impl Copy for ClearColor
Auto Trait Implementations§
impl Freeze for ClearColor
impl RefUnwindSafe for ClearColor
impl Send for ClearColor
impl Sync for ClearColor
impl Unpin for ClearColor
impl UnwindSafe for ClearColor
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