Struct gltf::mesh::util::colors::RgbU8 [−][src]
pub struct RgbU8;
Type which describes how to cast any color into RGB u8.
Trait Implementations
impl Clone for RgbU8[src]
impl Clone for RgbU8fn clone(&self) -> RgbU8[src]
fn clone(&self) -> RgbU8Returns 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)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for RgbU8[src]
impl Debug for RgbU8fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Cast for RgbU8[src]
impl Cast for RgbU8type Output = [u8; 3]
Output type.
fn cast_rgb_u8(x: [u8; 3]) -> Self::Output[src]
fn cast_rgb_u8(x: [u8; 3]) -> Self::OutputCast from RGB u8.
fn cast_rgb_u16(x: [u16; 3]) -> Self::Output[src]
fn cast_rgb_u16(x: [u16; 3]) -> Self::OutputCast from RGB u16.
fn cast_rgb_f32(x: [f32; 3]) -> Self::Output[src]
fn cast_rgb_f32(x: [f32; 3]) -> Self::OutputCast from RGB f32.
fn cast_rgba_u8(x: [u8; 4]) -> Self::Output[src]
fn cast_rgba_u8(x: [u8; 4]) -> Self::OutputCast from RGBA u8.
fn cast_rgba_u16(x: [u16; 4]) -> Self::Output[src]
fn cast_rgba_u16(x: [u16; 4]) -> Self::OutputCast from RGBA u16.
fn cast_rgba_f32(x: [f32; 4]) -> Self::Output[src]
fn cast_rgba_f32(x: [f32; 4]) -> Self::OutputCast from RGBA f32.