pub enum ReadWeights<'a> {
U8(Iter<'a, [u8; 4]>),
U16(Iter<'a, [u16; 4]>),
F32(Iter<'a, [f32; 4]>),
}
This is supported on crate feature
utils
only.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
pub fn into_u8(self) -> CastingIter<'a, U8>ⓘNotable traits for CastingIter<'a, A>impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
pub fn into_u8(self) -> CastingIter<'a, U8>ⓘNotable traits for CastingIter<'a, A>impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
Notable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
Reinterpret weights as u8. Lossy if the underlying iterator yields u16 or f32.
pub fn into_u16(self) -> CastingIter<'a, U16>ⓘNotable traits for CastingIter<'a, A>impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
pub fn into_u16(self) -> CastingIter<'a, U16>ⓘNotable traits for CastingIter<'a, A>impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
Notable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
Reinterpret weights as u16. Lossy if the underlying iterator yields f32.
pub fn into_f32(self) -> CastingIter<'a, F32>ⓘNotable traits for CastingIter<'a, A>impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
pub fn into_f32(self) -> CastingIter<'a, F32>ⓘNotable traits for CastingIter<'a, A>impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
Notable traits for CastingIter<'a, A>
impl<'a, A: Cast> Iterator for CastingIter<'a, A> type Item = A::Output;
Reinterpret weights as f32. Lossy if the underlying iterator yields u16.
Trait Implementations
Auto 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
Mutably borrows from an owned value. Read more