pub struct Packed4Bit(/* private fields */);Implementations§
Trait Implementations§
Source§impl Clone for Packed4Bit
impl Clone for Packed4Bit
Source§fn clone(&self) -> Packed4Bit
fn clone(&self) -> Packed4Bit
Returns a duplicate 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 moreSource§impl Convert<Packed4Bit> for f32
impl Convert<Packed4Bit> for f32
Source§fn convert(src: Packed4Bit) -> Self
fn convert(src: Packed4Bit) -> Self
Convert a source value to the destination type
Source§impl Convert<Packed4Bit> for i8
impl Convert<Packed4Bit> for i8
Source§fn convert(src: Packed4Bit) -> Self
fn convert(src: Packed4Bit) -> Self
Convert a source value to the destination type
Source§impl Convert<Packed4Bit> for u8
impl Convert<Packed4Bit> for u8
Source§fn convert(src: Packed4Bit) -> Self
fn convert(src: Packed4Bit) -> Self
Convert a source value to the destination type
Source§impl Debug for Packed4Bit
impl Debug for Packed4Bit
Source§impl Default for Packed4Bit
impl Default for Packed4Bit
Source§fn default() -> Packed4Bit
fn default() -> Packed4Bit
Returns the “default value” for a type. Read more
Source§impl EndianCodec for Packed4Bit
impl EndianCodec for Packed4Bit
Source§fn from_bytes(bytes: &[u8], offset: usize, _endian: FileEndian) -> Self
fn from_bytes(bytes: &[u8], offset: usize, _endian: FileEndian) -> Self
Decode: bytes → value (read from bytes at offset)
Source§fn to_bytes(&self, bytes: &mut [u8], offset: usize, _endian: FileEndian)
fn to_bytes(&self, bytes: &mut [u8], offset: usize, _endian: FileEndian)
Encode: value → bytes (write to bytes at offset)
Source§impl PartialEq for Packed4Bit
impl PartialEq for Packed4Bit
Source§impl Voxel for Packed4Bit
impl Voxel for Packed4Bit
impl Copy for Packed4Bit
impl StructuralPartialEq for Packed4Bit
Auto Trait Implementations§
impl Freeze for Packed4Bit
impl RefUnwindSafe for Packed4Bit
impl Send for Packed4Bit
impl Sync for Packed4Bit
impl Unpin for Packed4Bit
impl UnsafeUnpin for Packed4Bit
impl UnwindSafe for Packed4Bit
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 more