#[repr(C, packed(1))]pub struct f32_ube(/* private fields */);
Expand description
A big-endian unaligned f32
with a guaranteed size of 4
and alignment of 1
.
Implementations§
Trait Implementations§
source§impl AddAssign<&f32> for f32_ube
impl AddAssign<&f32> for f32_ube
source§fn add_assign(&mut self, other: &f32)
fn add_assign(&mut self, other: &f32)
Performs the
+=
operation. Read moresource§impl AddAssign<&f32_ube> for f32_ube
impl AddAssign<&f32_ube> for f32_ube
source§fn add_assign(&mut self, other: &f32_ube)
fn add_assign(&mut self, other: &f32_ube)
Performs the
+=
operation. Read moresource§impl AddAssign<f32> for f32_ube
impl AddAssign<f32> for f32_ube
source§fn add_assign(&mut self, other: f32)
fn add_assign(&mut self, other: f32)
Performs the
+=
operation. Read moresource§impl AddAssign for f32_ube
impl AddAssign for f32_ube
source§fn add_assign(&mut self, other: f32_ube)
fn add_assign(&mut self, other: f32_ube)
Performs the
+=
operation. Read moresource§impl DivAssign<&f32> for f32_ube
impl DivAssign<&f32> for f32_ube
source§fn div_assign(&mut self, other: &f32)
fn div_assign(&mut self, other: &f32)
Performs the
/=
operation. Read moresource§impl DivAssign<&f32_ube> for f32_ube
impl DivAssign<&f32_ube> for f32_ube
source§fn div_assign(&mut self, other: &f32_ube)
fn div_assign(&mut self, other: &f32_ube)
Performs the
/=
operation. Read moresource§impl DivAssign<f32> for f32_ube
impl DivAssign<f32> for f32_ube
source§fn div_assign(&mut self, other: f32)
fn div_assign(&mut self, other: f32)
Performs the
/=
operation. Read moresource§impl DivAssign for f32_ube
impl DivAssign for f32_ube
source§fn div_assign(&mut self, other: f32_ube)
fn div_assign(&mut self, other: f32_ube)
Performs the
/=
operation. Read moresource§impl FromBytes for f32_ubewhere
f32: FromBytes,
impl FromBytes for f32_ubewhere
f32: FromBytes,
§fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
fn ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: KnownLayout + Immutable,
§fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
fn ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>where
Self: Immutable + KnownLayout,
Interprets the suffix of the given bytes as a
&Self
. Read more§fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_bytes(
source: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
§fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
fn mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>where
Self: IntoBytes + KnownLayout,
source§impl IntoBytes for f32_ubewhere
f32: IntoBytes,
impl IntoBytes for f32_ubewhere
f32: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
source§impl KnownLayout for f32_ubewhere
f32: KnownLayout,
impl KnownLayout for f32_ubewhere
f32: KnownLayout,
§type PointerMetadata = <f32 as KnownLayout>::PointerMetadata
type PointerMetadata = <f32 as KnownLayout>::PointerMetadata
The type of metadata stored in a pointer to
Self
. Read moresource§impl MulAssign<&f32> for f32_ube
impl MulAssign<&f32> for f32_ube
source§fn mul_assign(&mut self, other: &f32)
fn mul_assign(&mut self, other: &f32)
Performs the
*=
operation. Read moresource§impl MulAssign<&f32_ube> for f32_ube
impl MulAssign<&f32_ube> for f32_ube
source§fn mul_assign(&mut self, other: &f32_ube)
fn mul_assign(&mut self, other: &f32_ube)
Performs the
*=
operation. Read moresource§impl MulAssign<f32> for f32_ube
impl MulAssign<f32> for f32_ube
source§fn mul_assign(&mut self, other: f32)
fn mul_assign(&mut self, other: f32)
Performs the
*=
operation. Read moresource§impl MulAssign for f32_ube
impl MulAssign for f32_ube
source§fn mul_assign(&mut self, other: f32_ube)
fn mul_assign(&mut self, other: f32_ube)
Performs the
*=
operation. Read moresource§impl PartialEq<f32_ube> for f32
impl PartialEq<f32_ube> for f32
source§impl PartialEq for f32_ube
impl PartialEq for f32_ube
source§impl PartialOrd<f32> for f32_ube
impl PartialOrd<f32> for f32_ube
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PartialOrd for f32_ube
impl PartialOrd for f32_ube
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RemAssign<&f32> for f32_ube
impl RemAssign<&f32> for f32_ube
source§fn rem_assign(&mut self, other: &f32)
fn rem_assign(&mut self, other: &f32)
Performs the
%=
operation. Read moresource§impl RemAssign<&f32_ube> for f32_ube
impl RemAssign<&f32_ube> for f32_ube
source§fn rem_assign(&mut self, other: &f32_ube)
fn rem_assign(&mut self, other: &f32_ube)
Performs the
%=
operation. Read moresource§impl RemAssign<f32> for f32_ube
impl RemAssign<f32> for f32_ube
source§fn rem_assign(&mut self, other: f32)
fn rem_assign(&mut self, other: f32)
Performs the
%=
operation. Read moresource§impl RemAssign for f32_ube
impl RemAssign for f32_ube
source§fn rem_assign(&mut self, other: f32_ube)
fn rem_assign(&mut self, other: f32_ube)
Performs the
%=
operation. Read moresource§impl SubAssign<&f32> for f32_ube
impl SubAssign<&f32> for f32_ube
source§fn sub_assign(&mut self, other: &f32)
fn sub_assign(&mut self, other: &f32)
Performs the
-=
operation. Read moresource§impl SubAssign<&f32_ube> for f32_ube
impl SubAssign<&f32_ube> for f32_ube
source§fn sub_assign(&mut self, other: &f32_ube)
fn sub_assign(&mut self, other: &f32_ube)
Performs the
-=
operation. Read moresource§impl SubAssign<f32> for f32_ube
impl SubAssign<f32> for f32_ube
source§fn sub_assign(&mut self, other: f32)
fn sub_assign(&mut self, other: f32)
Performs the
-=
operation. Read moresource§impl SubAssign for f32_ube
impl SubAssign for f32_ube
source§fn sub_assign(&mut self, other: f32_ube)
fn sub_assign(&mut self, other: f32_ube)
Performs the
-=
operation. Read moresource§impl TryFromBytes for f32_ubewhere
f32: TryFromBytes,
impl TryFromBytes for f32_ubewhere
f32: TryFromBytes,
§fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_bytes(
source: &[u8],
) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_prefix(
source: &[u8],
) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
fn try_ref_from_suffix(
source: &[u8],
) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: KnownLayout + Immutable,
§fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_bytes(
bytes: &mut [u8],
) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_prefix(
source: &mut [u8],
) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
fn try_mut_from_suffix(
source: &mut [u8],
) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>where
Self: KnownLayout,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for f32_ube
impl Eq for f32_ube
impl Immutable for f32_ubewhere
f32: Immutable,
impl Unaligned for f32_ube
Auto Trait Implementations§
impl Freeze for f32_ube
impl RefUnwindSafe for f32_ube
impl Send for f32_ube
impl Sync for f32_ube
impl Unpin for f32_ube
impl UnwindSafe for f32_ube
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)