#[repr(C)]pub struct FixedByteStr<const N: usize> {
pub raw: [u8; N],
pub len: usize,
}Expand description
A no-std compatible string type
This is a wrapper around a fixed size array of bytes The string is not null terminated, and the length is stored in the struct
Fields§
§raw: [u8; N]§len: usizeImplementations§
Trait Implementations§
Source§impl<const N: usize> Clone for FixedByteStr<N>
impl<const N: usize> Clone for FixedByteStr<N>
Source§fn clone(&self) -> FixedByteStr<N>
fn clone(&self) -> FixedByteStr<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<const N: usize> Debug for FixedByteStr<N>
impl<const N: usize> Debug for FixedByteStr<N>
Source§impl<const N: usize> Display for FixedByteStr<N>
impl<const N: usize> Display for FixedByteStr<N>
Source§impl<const N: usize> Write for FixedByteStr<N>
impl<const N: usize> Write for FixedByteStr<N>
impl<const N: usize> Copy for FixedByteStr<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FixedByteStr<N>
impl<const N: usize> RefUnwindSafe for FixedByteStr<N>
impl<const N: usize> Send for FixedByteStr<N>
impl<const N: usize> Sync for FixedByteStr<N>
impl<const N: usize> Unpin for FixedByteStr<N>
impl<const N: usize> UnwindSafe for FixedByteStr<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