#[repr(transparent)]pub struct FixedUtf8BytesRef<'a, const N: usize>(pub &'a [u8; N]);Available on crate features
text_fixed and text_utf8 only.Expand description
A borrowed reference to exactly N UTF-8 bytes.
Tuple Fields§
§0: &'a [u8; N]Implementations§
Trait Implementations§
Source§impl<'a, const N: usize> Clone for FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn clone(&self) -> FixedUtf8BytesRef<'a, N>
fn clone(&self) -> FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 [u8; N]> for FixedUtf8BytesRef<'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 [u8; N]> for FixedUtf8BytesRef<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl<'a, const N: usize> Hash for FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'a, N>
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn cmp(&self, other: &FixedUtf8BytesRef<'a, N>) -> Ordering
fn cmp(&self, other: &FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'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 FixedUtf8BytesRef<'a, N>
impl<'a, const N: usize> RefUnwindSafe for FixedUtf8BytesRef<'a, N>
impl<'a, const N: usize> Send for FixedUtf8BytesRef<'a, N>
impl<'a, const N: usize> Sync for FixedUtf8BytesRef<'a, N>
impl<'a, const N: usize> Unpin for FixedUtf8BytesRef<'a, N>
impl<'a, const N: usize> UnwindSafe for FixedUtf8BytesRef<'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