pub struct FixedUtf16<const N: usize, E: Utf16ByteOrder> { /* private fields */ }Expand description
Fixed-width, NUL-padded UTF-16 code units in a specified byte order.
Implementations§
Source§impl<const N: usize, E: Utf16ByteOrder> FixedUtf16<N, E>
impl<const N: usize, E: Utf16ByteOrder> FixedUtf16<N, E>
Sourcepub fn try_from_str(value: &str) -> Result<Self, CapacityError>
pub fn try_from_str(value: &str) -> Result<Self, CapacityError>
Encodes a string into fixed-width UTF-16.
Trait Implementations§
Source§impl<const N: usize, E: Clone + Utf16ByteOrder> Clone for FixedUtf16<N, E>
impl<const N: usize, E: Clone + Utf16ByteOrder> Clone for FixedUtf16<N, E>
impl<const N: usize, E: Copy + Utf16ByteOrder> Copy for FixedUtf16<N, E>
Source§impl<const N: usize, E: Debug + Utf16ByteOrder> Debug for FixedUtf16<N, E>
impl<const N: usize, E: Debug + Utf16ByteOrder> Debug for FixedUtf16<N, E>
Source§impl<const N: usize, E: Utf16ByteOrder> Default for FixedUtf16<N, E>
impl<const N: usize, E: Utf16ByteOrder> Default for FixedUtf16<N, E>
impl<const N: usize, E: Eq + Utf16ByteOrder> Eq for FixedUtf16<N, E>
Source§impl<const N: usize, E: PartialEq + Utf16ByteOrder> PartialEq for FixedUtf16<N, E>
impl<const N: usize, E: PartialEq + Utf16ByteOrder> PartialEq for FixedUtf16<N, E>
impl<const N: usize, E: PartialEq + Utf16ByteOrder> StructuralPartialEq for FixedUtf16<N, E>
Auto Trait Implementations§
impl<const N: usize, E> Freeze for FixedUtf16<N, E>
impl<const N: usize, E> RefUnwindSafe for FixedUtf16<N, E>
impl<const N: usize, E> Send for FixedUtf16<N, E>
impl<const N: usize, E> Sync for FixedUtf16<N, E>
impl<const N: usize, E> Unpin for FixedUtf16<N, E>
impl<const N: usize, E> UnsafeUnpin for FixedUtf16<N, E>
impl<const N: usize, E> UnwindSafe for FixedUtf16<N, E>
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