Enum gltf::mesh::util::ReadWeights
source · pub enum ReadWeights<'a> {
U8(Iter<'a, [u8; 4]>),
U16(Iter<'a, [u16; 4]>),
F32(Iter<'a, [f32; 4]>),
}
Expand description
Weights.
Variants§
U8(Iter<'a, [u8; 4]>)
Weights of type [u8; 4]
.
U16(Iter<'a, [u16; 4]>)
Weights of type [u16; 4]
.
F32(Iter<'a, [f32; 4]>)
Weights of type [f32; 4]
.
Implementations§
source§impl<'a> ReadWeights<'a>
impl<'a> ReadWeights<'a>
sourcepub fn into_u8(self) -> CastingIter<'a, U8> ⓘ
pub fn into_u8(self) -> CastingIter<'a, U8> ⓘ
Reinterpret weights as u8. Lossy if the underlying iterator yields u16 or f32.
sourcepub fn into_u16(self) -> CastingIter<'a, U16> ⓘ
pub fn into_u16(self) -> CastingIter<'a, U16> ⓘ
Reinterpret weights as u16. Lossy if the underlying iterator yields f32.
sourcepub fn into_f32(self) -> CastingIter<'a, F32> ⓘ
pub fn into_f32(self) -> CastingIter<'a, F32> ⓘ
Reinterpret weights as f32. Lossy if the underlying iterator yields u16.
Trait Implementations§
source§impl<'a> Clone for ReadWeights<'a>
impl<'a> Clone for ReadWeights<'a>
source§fn clone(&self) -> ReadWeights<'a>
fn clone(&self) -> ReadWeights<'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 ReadWeights<'a>
impl<'a> Send for ReadWeights<'a>
impl<'a> Sync for ReadWeights<'a>
impl<'a> Unpin for ReadWeights<'a>
impl<'a> UnwindSafe for ReadWeights<'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