[−][src]Enum gltf::mesh::util::ReadColors
Vertex colors.
Variants
RGB vertex color of type [u8; 3]>.
RGB vertex color of type [u16; 3]>.
RGB vertex color of type [f32; 3].
RGBA vertex color of type [u8; 4]>.
RGBA vertex color of type [u16; 4]>.
RGBA vertex color of type [f32; 4].
Methods
impl<'a> ReadColors<'a>[src]
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgb_u8(self) -> CastingIter<'a, RgbU8>[src]
Reinterpret colors as RGB u8, discarding alpha, if present. Lossy if the underlying iterator yields u16, f32 or any RGBA.
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgb_u16(self) -> CastingIter<'a, RgbU16>[src]
Reinterpret colors as RGB u16, discarding alpha, if present. Lossy if the underlying iterator yields f32 or any RGBA.
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgb_f32(self) -> CastingIter<'a, RgbF32>[src]
Reinterpret colors as RGB f32, discarding alpha, if present. Lossy if the underlying iterator yields u16 or any RGBA.
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgba_u8(self) -> CastingIter<'a, RgbaU8>[src]
Reinterpret colors as RGBA u8, with default alpha 255. Lossy if the underlying iterator yields u16 or f32.
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgba_u16(self) -> CastingIter<'a, RgbaU16>[src]
Reinterpret colors as RGBA u16, with default alpha 65535. Lossy if the underlying iterator yields f32.
ⓘImportant traits for CastingIter<'a, A>pub fn into_rgba_f32(self) -> CastingIter<'a, RgbaF32>[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]
fn clone(&self) -> ReadColors<'a>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Debug for ReadColors<'a>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,