Enum gltf::animation::util::MorphTargetWeights
source · pub enum MorphTargetWeights<'a> {
I8(Iter<'a, i8>),
U8(Iter<'a, u8>),
I16(Iter<'a, i16>),
U16(Iter<'a, u16>),
F32(Iter<'a, f32>),
}
Expand description
Morph-target weight animations.
Variants§
I8(Iter<'a, i8>)
Weights of type i8
.
U8(Iter<'a, u8>)
Weights of type u8
.
I16(Iter<'a, i16>)
Weights of type i16
.
U16(Iter<'a, u16>)
Weights of type u16
.
F32(Iter<'a, f32>)
Weights of type f32
.
Implementations§
source§impl<'a> MorphTargetWeights<'a>
impl<'a> MorphTargetWeights<'a>
sourcepub fn into_i8(self) -> CastingIter<'a, I8> ⓘ
pub fn into_i8(self) -> CastingIter<'a, I8> ⓘ
Reinterpret morph weights as u16. Lossy if underlying iterator yields u8, i16, u16 or f32.
sourcepub fn into_u8(self) -> CastingIter<'a, U8> ⓘ
pub fn into_u8(self) -> CastingIter<'a, U8> ⓘ
Reinterpret morph weights as u16. Lossy if underlying iterator yields i16, u16 or f32.
sourcepub fn into_i16(self) -> CastingIter<'a, I16> ⓘ
pub fn into_i16(self) -> CastingIter<'a, I16> ⓘ
Reinterpret morph weights as u16. Lossy if underlying iterator yields u16 or f32.
sourcepub fn into_u16(self) -> CastingIter<'a, U16> ⓘ
pub fn into_u16(self) -> CastingIter<'a, U16> ⓘ
Reinterpret morph weights as u16. Lossy if underlying iterator yields f32.
sourcepub fn into_f32(self) -> CastingIter<'a, F32> ⓘ
pub fn into_f32(self) -> CastingIter<'a, F32> ⓘ
Reinterpret morph weights as f32. Lossy if underlying iterator yields i16 or u16.
Trait Implementations§
source§impl<'a> Clone for MorphTargetWeights<'a>
impl<'a> Clone for MorphTargetWeights<'a>
source§fn clone(&self) -> MorphTargetWeights<'a>
fn clone(&self) -> MorphTargetWeights<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for MorphTargetWeights<'a>
impl<'a> Send for MorphTargetWeights<'a>
impl<'a> Sync for MorphTargetWeights<'a>
impl<'a> Unpin for MorphTargetWeights<'a>
impl<'a> UnwindSafe for MorphTargetWeights<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more