Enum gltf::mesh::util::ReadColors [−][src]
pub enum ReadColors<'a> {
RgbU8(Iter<'a, [u8; 3]>),
RgbU16(Iter<'a, [u16; 3]>),
RgbF32(Iter<'a, [f32; 3]>),
RgbaU8(Iter<'a, [u8; 4]>),
RgbaU16(Iter<'a, [u16; 4]>),
RgbaF32(Iter<'a, [f32; 4]>),
}utils only.Expand description
Vertex colors.
Variants
Expand description
RGB vertex color of type [u8; 3]>.
Expand description
RGB vertex color of type [u16; 3]>.
Expand description
RGB vertex color of type [f32; 3].
Expand description
RGBA vertex color of type [u8; 4]>.
Expand description
RGBA vertex color of type [u16; 4]>.
Expand description
RGBA vertex color of type [f32; 4].
Implementations
impl<'a> ReadColors<'a>[src]
impl<'a> ReadColors<'a>[src]pub fn into_rgb_u8(self) -> CastingIter<'a, RgbU8>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]
pub fn into_rgb_u8(self) -> CastingIter<'a, RgbU8>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]Reinterpret colors as RGB u8, discarding alpha, if present. Lossy if the underlying iterator yields u16, f32 or any RGBA.
pub fn into_rgb_u16(self) -> CastingIter<'a, RgbU16>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]
pub fn into_rgb_u16(self) -> CastingIter<'a, RgbU16>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]Reinterpret colors as RGB u16, discarding alpha, if present. Lossy if the underlying iterator yields f32 or any RGBA.
pub fn into_rgb_f32(self) -> CastingIter<'a, RgbF32>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]
pub fn into_rgb_f32(self) -> CastingIter<'a, RgbF32>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]Reinterpret colors as RGB f32, discarding alpha, if present. Lossy if the underlying iterator yields u16 or any RGBA.
pub fn into_rgba_u8(self) -> CastingIter<'a, RgbaU8>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]
pub fn into_rgba_u8(self) -> CastingIter<'a, RgbaU8>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]Reinterpret colors as RGBA u8, with default alpha 255. Lossy if the underlying iterator yields u16 or f32.
pub fn into_rgba_u16(self) -> CastingIter<'a, RgbaU16>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]
pub fn into_rgba_u16(self) -> CastingIter<'a, RgbaU16>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]Reinterpret colors as RGBA u16, with default alpha 65535. Lossy if the underlying iterator yields f32.
pub fn into_rgba_f32(self) -> CastingIter<'a, RgbaF32>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]
pub fn into_rgba_f32(self) -> CastingIter<'a, RgbaF32>ⓘNotable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;[src]Reinterpret colors as RGBA f32, with default alpha 1.0. Lossy if the underlying iterator yields u16.
Trait Implementations
impl<'a> Clone for ReadColors<'a>[src]
impl<'a> Clone for ReadColors<'a>[src]fn clone(&self) -> ReadColors<'a>[src]
fn clone(&self) -> ReadColors<'a>[src]Returns 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
Auto Trait Implementations
impl<'a> RefUnwindSafe for ReadColors<'a>
impl<'a> Send for ReadColors<'a>
impl<'a> Sync for ReadColors<'a>
impl<'a> Unpin for ReadColors<'a>
impl<'a> UnwindSafe for ReadColors<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more