Enum gfx::core::draw::ClearColor
[−]
pub enum ClearColor { Float([f32; 4]), Int([i32; 4]), Uint([u32; 4]), }
A universal clear color supporting integet formats as well as the standard floating-point.
Variants
Float([f32; 4])
Standard floating-point vec4 color
Int([i32; 4])
Integer vector to clear ivec4 targets.
Uint([u32; 4])
Unsigned int vector to clear uvec4 targets.
Trait Implementations
impl PartialOrd<ClearColor> for ClearColor
fn partial_cmp(&self, __arg_0: &ClearColor) -> Option<Ordering>
fn lt(&self, __arg_0: &ClearColor) -> bool
fn le(&self, __arg_0: &ClearColor) -> bool
fn gt(&self, __arg_0: &ClearColor) -> bool
fn ge(&self, __arg_0: &ClearColor) -> bool
impl PartialEq<ClearColor> for ClearColor
fn eq(&self, __arg_0: &ClearColor) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ClearColor) -> bool
This method tests for !=
.
impl Debug for ClearColor
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for ClearColor
fn clone(&self) -> ClearColor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for ClearColor
impl From<[f32; 4]> for ClearColor
fn from(v: [f32; 4]) -> ClearColor
Performs the conversion.
impl From<[f32; 3]> for ClearColor
fn from(v: [f32; 3]) -> ClearColor
Performs the conversion.
impl From<[f32; 2]> for ClearColor
fn from(v: [f32; 2]) -> ClearColor
Performs the conversion.
impl From<[i32; 4]> for ClearColor
fn from(v: [i32; 4]) -> ClearColor
Performs the conversion.
impl From<[i32; 3]> for ClearColor
fn from(v: [i32; 3]) -> ClearColor
Performs the conversion.
impl From<[i32; 2]> for ClearColor
fn from(v: [i32; 2]) -> ClearColor
Performs the conversion.
impl From<[u32; 4]> for ClearColor
fn from(v: [u32; 4]) -> ClearColor
Performs the conversion.
impl From<[u32; 3]> for ClearColor
fn from(v: [u32; 3]) -> ClearColor
Performs the conversion.
impl From<[u32; 2]> for ClearColor
fn from(v: [u32; 2]) -> ClearColor
Performs the conversion.
impl From<f32> for ClearColor
fn from(v: f32) -> ClearColor
Performs the conversion.
impl From<i32> for ClearColor
fn from(v: i32) -> ClearColor
Performs the conversion.
impl From<u32> for ClearColor
fn from(v: u32) -> ClearColor
Performs the conversion.