Union gfx_hal::command::ClearColor
source · [−]#[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
sourceimpl Clone for ClearColor
impl Clone for ClearColor
sourcefn clone(&self) -> ClearColor
fn clone(&self) -> ClearColor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ClearColor
impl Debug for ClearColor
impl Copy for ClearColor
Auto Trait Implementations
impl RefUnwindSafe for ClearColor
impl Send for ClearColor
impl Sync for ClearColor
impl Unpin for ClearColor
impl UnwindSafe for ClearColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more