pub struct FixedUtf32CodeUnitsEndian<E, const N: usize> { /* private fields */ }Available on crate features
text_fixed and text_utf32 only.Expand description
Inline, fixed-size UTF-32 code units stored with explicit endianness.
This is the endian-parameterized core type. For the host-endian convenience
alias, see FixedUtf32CodeUnits.
Implementations§
Trait Implementations§
Source§impl<E: Clone, const N: usize> Clone for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<E: Clone, const N: usize> Clone for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn clone(&self) -> FixedUtf32CodeUnitsEndian<E, N>
fn clone(&self) -> FixedUtf32CodeUnitsEndian<E, N>
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<E: Debug, const N: usize> Debug for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<E: Debug, const N: usize> Debug for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<E, const N: usize> From<[E; N]> for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<E, const N: usize> From<[E; N]> for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<const N: usize> From<FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for FixedUtf32BeNullPadded<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for FixedUtf32BeNullPadded<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedUtf32BeCodeUnits<N>) -> Self
fn from(v: FixedUtf32BeCodeUnits<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for FixedUtf32BePacked<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for FixedUtf32BePacked<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedUtf32BeCodeUnits<N>) -> Self
fn from(v: FixedUtf32BeCodeUnits<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for FixedUtf32BeSpacePadded<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for FixedUtf32BeSpacePadded<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedUtf32BeCodeUnits<N>) -> Self
fn from(v: FixedUtf32BeCodeUnits<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for FixedUtf32LeNullPadded<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for FixedUtf32LeNullPadded<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedUtf32LeCodeUnits<N>) -> Self
fn from(v: FixedUtf32LeCodeUnits<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for FixedUtf32LePacked<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for FixedUtf32LePacked<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedUtf32LeCodeUnits<N>) -> Self
fn from(v: FixedUtf32LeCodeUnits<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for FixedUtf32LeSpacePadded<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for FixedUtf32LeSpacePadded<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedUtf32LeCodeUnits<N>) -> Self
fn from(v: FixedUtf32LeCodeUnits<N>) -> Self
Converts to this type from the input type.
Source§impl<E: Hash, const N: usize> Hash for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<E: Hash, const N: usize> Hash for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<E: Ord, const N: usize> Ord for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<E: Ord, const N: usize> Ord for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn cmp(&self, other: &FixedUtf32CodeUnitsEndian<E, N>) -> Ordering
fn cmp(&self, other: &FixedUtf32CodeUnitsEndian<E, N>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<E: PartialEq, const N: usize> PartialEq for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<E: PartialEq, const N: usize> PartialEq for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn eq(&self, other: &FixedUtf32CodeUnitsEndian<E, N>) -> bool
fn eq(&self, other: &FixedUtf32CodeUnitsEndian<E, N>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<E: PartialOrd, const N: usize> PartialOrd for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<E: PartialOrd, const N: usize> PartialOrd for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<const N: usize> SpecificEndian<FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for FixedUtf32BeCodeUnits<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> SpecificEndian<FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for FixedUtf32BeCodeUnits<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.fn to_big_endian(&self) -> FixedUtf32BeCodeUnits<N>
fn to_little_endian(&self) -> FixedUtf32BeCodeUnits<N>
fn from_big_endian(&self) -> FixedUtf32BeCodeUnits<N>
fn from_little_endian(&self) -> FixedUtf32BeCodeUnits<N>
fn endian(&self) -> Endian
Source§impl<const N: usize> SpecificEndian<FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for FixedUtf32LeCodeUnits<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> SpecificEndian<FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for FixedUtf32LeCodeUnits<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.fn to_big_endian(&self) -> FixedUtf32LeCodeUnits<N>
fn to_little_endian(&self) -> FixedUtf32LeCodeUnits<N>
fn from_big_endian(&self) -> FixedUtf32LeCodeUnits<N>
fn from_little_endian(&self) -> FixedUtf32LeCodeUnits<N>
fn endian(&self) -> Endian
Source§impl<const N: usize> TryFrom<&FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for String
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> TryFrom<&FixedUtf32CodeUnitsEndian<BigEndian<u32>, N>> for String
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§type Error = FixedUtf32Error
type Error = FixedUtf32Error
The type returned in the event of a conversion error.
Source§impl<const N: usize> TryFrom<&FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for String
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> TryFrom<&FixedUtf32CodeUnitsEndian<LittleEndian<u32>, N>> for String
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§type Error = FixedUtf32Error
type Error = FixedUtf32Error
The type returned in the event of a conversion error.
impl<E: Copy, const N: usize> Copy for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl<E: Eq, const N: usize> Eq for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl<E, const N: usize> StructuralPartialEq for FixedUtf32CodeUnitsEndian<E, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Auto Trait Implementations§
impl<E, const N: usize> Freeze for FixedUtf32CodeUnitsEndian<E, N>where
E: Freeze,
impl<E, const N: usize> RefUnwindSafe for FixedUtf32CodeUnitsEndian<E, N>where
E: RefUnwindSafe,
impl<E, const N: usize> Send for FixedUtf32CodeUnitsEndian<E, N>where
E: Send,
impl<E, const N: usize> Sync for FixedUtf32CodeUnitsEndian<E, N>where
E: Sync,
impl<E, const N: usize> Unpin for FixedUtf32CodeUnitsEndian<E, N>where
E: Unpin,
impl<E, const N: usize> UnwindSafe for FixedUtf32CodeUnitsEndian<E, N>where
E: UnwindSafe,
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