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>
Source§fn clone(&self) -> FixedUtf16<N, E>
fn clone(&self) -> FixedUtf16<N, E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<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>where
E: RefUnwindSafe,
impl<const N: usize, E> Send for FixedUtf16<N, E>where
E: Send,
impl<const N: usize, E> Sync for FixedUtf16<N, E>where
E: Sync,
impl<const N: usize, E> Unpin for FixedUtf16<N, E>where
E: Unpin,
impl<const N: usize, E> UnsafeUnpin for FixedUtf16<N, E>
impl<const N: usize, E> UnwindSafe for FixedUtf16<N, E>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