#[repr(transparent)]pub struct FixedCodepointStr<'a, const N: usize>(pub &'a [char; N]);Available on crate feature
text_fixed only.Expand description
A borrowed view of exactly N Unicode scalar values.
Tuple Fields§
§0: &'a [char; N]Implementations§
Trait Implementations§
Source§impl<'a, const N: usize> AsRef<[char]> for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> AsRef<[char]> for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<'a, const N: usize> Clone for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> Clone for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn clone(&self) -> FixedCodepointStr<'a, N>
fn clone(&self) -> FixedCodepointStr<'a, 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<'a, const N: usize> Debug for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> Debug for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<'a, const N: usize> Display for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> Display for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<'a, const N: usize> From<&'a [char; N]> for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> From<&'a [char; N]> for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<'a, const N: usize> From<&'a FixedCodepointString<N>> for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> From<&'a FixedCodepointString<N>> for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: &'a FixedCodepointString<N>) -> Self
fn from(v: &'a FixedCodepointString<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedCodepointStr<'_, N>> for [char; N]
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedCodepointStr<'_, N>> for [char; N]
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedCodepointStr<'_, N>) -> Self
fn from(v: FixedCodepointStr<'_, N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedCodepointStr<'_, N>> for FixedCodepointString<N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedCodepointStr<'_, N>> for FixedCodepointString<N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedCodepointStr<'_, N>) -> Self
fn from(v: FixedCodepointStr<'_, N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<FixedCodepointStr<'_, N>> for String
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<const N: usize> From<FixedCodepointStr<'_, N>> for String
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn from(v: FixedCodepointStr<'_, N>) -> Self
fn from(v: FixedCodepointStr<'_, N>) -> Self
Converts to this type from the input type.
Source§impl<'a, const N: usize> Hash for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> Hash for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<'a, const N: usize> Ord for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> Ord for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn cmp(&self, other: &FixedCodepointStr<'a, N>) -> Ordering
fn cmp(&self, other: &FixedCodepointStr<'a, 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<'a, const N: usize> PartialEq for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> PartialEq for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<'a, const N: usize> PartialOrd for FixedCodepointStr<'a, N>
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl<'a, const N: usize> PartialOrd for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl<'a, const N: usize> Copy for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl<'a, const N: usize> Eq for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl<'a, const N: usize> StructuralPartialEq for FixedCodepointStr<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Auto Trait Implementations§
impl<'a, const N: usize> Freeze for FixedCodepointStr<'a, N>
impl<'a, const N: usize> RefUnwindSafe for FixedCodepointStr<'a, N>
impl<'a, const N: usize> Send for FixedCodepointStr<'a, N>
impl<'a, const N: usize> Sync for FixedCodepointStr<'a, N>
impl<'a, const N: usize> Unpin for FixedCodepointStr<'a, N>
impl<'a, const N: usize> UnwindSafe for FixedCodepointStr<'a, N>
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