FixedUtf16LeCodeUnits

Type Alias FixedUtf16LeCodeUnits 

Source
pub type FixedUtf16LeCodeUnits<const N: usize> = FixedUtf16CodeUnitsEndian<LittleEndian<u16>, N>;
Available on crate features text_fixed and text_utf16 only.
Expand description

Little-endian fixed UTF-16 code units.

Aliased Type§

pub struct FixedUtf16LeCodeUnits<const N: usize> { /* private fields */ }

Trait Implementations§

Source§

impl<const N: usize> Display for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const N: usize> EndianRead for FixedUtf16LeCodeUnits<N>

Available on crate feature io-std and (crate features io-core or io-std) only.
Source§

fn read_from<R: Read + ?Sized>(reader: &mut R) -> Result<Self>

Source§

impl<const N: usize> EndianWrite for FixedUtf16LeCodeUnits<N>

Available on crate feature io-std and (crate features io-core or io-std) only.
Source§

fn write_to<W: Write + ?Sized>(&self, writer: &mut W) -> Result<()>

Source§

impl<const N: usize> From<FixedUtf16LeNullPadded<N>> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

fn from(v: FixedUtf16LeNullPadded<N>) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<FixedUtf16LePacked<N>> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

fn from(v: FixedUtf16LePacked<N>) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> From<FixedUtf16LeSpacePadded<N>> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

fn from(v: FixedUtf16LeSpacePadded<N>) -> Self

Converts to this type from the input type.
Source§

impl<const N: usize> FromSlice for FixedUtf16LeCodeUnits<N>

Available on crate feature io-core and (crate features io-core or io-std) only.
Source§

fn read_from_slice(data: &[u8]) -> Result<Self, &'static str>

Source§

fn write_to_extend(&self, out: &mut impl Extend<u8>) -> Result<(), &'static str>

Source§

impl<const N: usize> SpecificEndian<FixedUtf16CodeUnitsEndian<LittleEndian<u16>, N>> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

impl<const N: usize> SpecificEndianOwned for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

type Big = FixedUtf16CodeUnitsEndian<BigEndian<u16>, N>

The big-endian form of this type.
Source§

type Little = FixedUtf16CodeUnitsEndian<LittleEndian<u16>, N>

The little-endian form of this type.
Source§

fn to_big_endian(&self) -> Self::Big

Source§

fn to_little_endian(&self) -> Self::Little

Source§

fn from_big_endian(&self) -> Self::Big

Source§

fn from_little_endian(&self) -> Self::Little

Source§

fn endian(&self) -> Endian

Source§

impl<const N: usize> TryFrom<&[LittleEndian<u16>]> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

type Error = FixedUtf16Error

The type returned in the event of a conversion error.
Source§

fn try_from(v: &[LittleEndian<u16>]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&[u16]> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

type Error = FixedUtf16Error

The type returned in the event of a conversion error.
Source§

fn try_from(v: &[u16]) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<&str> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

type Error = FixedUtf16Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: &str) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<String> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

type Error = FixedUtf16Error

The type returned in the event of a conversion error.
Source§

fn try_from(s: String) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<const N: usize> TryFrom<Utf16StringLE> for FixedUtf16LeCodeUnits<N>

Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
Source§

type Error = FixedUtf16Error

The type returned in the event of a conversion error.
Source§

fn try_from(v: Utf16StringLE) -> Result<Self, Self::Error>

Performs the conversion.