pub struct Unorm8(/* private fields */);Expand description
[0, 1] represented by uniformly spaced u8 values (0..=255),
i.e. Unorm8(byte) corresponds to the f32 value byte as f32 / 255.0.
Implementations§
Trait Implementations§
Source§impl Ord for Unorm8
impl Ord for Unorm8
Source§impl PartialOrd for Unorm8
impl PartialOrd for Unorm8
impl Copy for Unorm8
impl Eq for Unorm8
impl StructuralPartialEq for Unorm8
Auto Trait Implementations§
impl Freeze for Unorm8
impl RefUnwindSafe for Unorm8
impl Send for Unorm8
impl Sync for Unorm8
impl Unpin for Unorm8
impl UnwindSafe for Unorm8
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().