Enum gfx_core::command::ClearColor [−][src]
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 Clone for ClearColor[src]
impl Clone for ClearColorfn clone(&self) -> ClearColor[src]
fn clone(&self) -> ClearColorReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for ClearColor[src]
impl Copy for ClearColorimpl Debug for ClearColor[src]
impl Debug for ClearColorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ClearColor[src]
impl PartialEq for ClearColorfn eq(&self, other: &ClearColor) -> bool[src]
fn eq(&self, other: &ClearColor) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ClearColor) -> bool[src]
fn ne(&self, other: &ClearColor) -> boolThis method tests for !=.
impl PartialOrd for ClearColor[src]
impl PartialOrd for ClearColorfn partial_cmp(&self, other: &ClearColor) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &ClearColor) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &ClearColor) -> bool[src]
fn lt(&self, other: &ClearColor) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &ClearColor) -> bool[src]
fn le(&self, other: &ClearColor) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &ClearColor) -> bool[src]
fn gt(&self, other: &ClearColor) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &ClearColor) -> bool[src]
fn ge(&self, other: &ClearColor) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl From<[f32; 4]> for ClearColor[src]
impl From<[f32; 4]> for ClearColorimpl From<[f32; 3]> for ClearColor[src]
impl From<[f32; 3]> for ClearColorimpl From<[f32; 2]> for ClearColor[src]
impl From<[f32; 2]> for ClearColorimpl From<[i32; 4]> for ClearColor[src]
impl From<[i32; 4]> for ClearColorimpl From<[i32; 3]> for ClearColor[src]
impl From<[i32; 3]> for ClearColorimpl From<[i32; 2]> for ClearColor[src]
impl From<[i32; 2]> for ClearColorimpl From<[u32; 4]> for ClearColor[src]
impl From<[u32; 4]> for ClearColorimpl From<[u32; 3]> for ClearColor[src]
impl From<[u32; 3]> for ClearColorimpl From<[u32; 2]> for ClearColor[src]
impl From<[u32; 2]> for ClearColorimpl From<f32> for ClearColor[src]
impl From<f32> for ClearColorfn from(v: f32) -> ClearColor[src]
fn from(v: f32) -> ClearColorPerforms the conversion.
impl From<i32> for ClearColor[src]
impl From<i32> for ClearColorfn from(v: i32) -> ClearColor[src]
fn from(v: i32) -> ClearColorPerforms the conversion.
impl From<u32> for ClearColor[src]
impl From<u32> for ClearColorfn from(v: u32) -> ClearColor[src]
fn from(v: u32) -> ClearColorPerforms the conversion.
Auto Trait Implementations
impl Send for ClearColor
impl Send for ClearColorimpl Sync for ClearColor
impl Sync for ClearColor