pub struct AsciiArray<const N: usize>(pub [u8; N]);Expand description
A fixed-size ASCII string.
Tuple Fields§
§0: [u8; N]Implementations§
Source§impl<const N: usize> AsciiArray<N>
impl<const N: usize> AsciiArray<N>
Trait Implementations§
Source§impl<const N: usize> Clone for AsciiArray<N>
impl<const N: usize> Clone for AsciiArray<N>
Source§fn clone(&self) -> AsciiArray<N>
fn clone(&self) -> AsciiArray<N>
Returns a copy 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<'de, const N: usize> Deserialize<'de> for AsciiArray<N>
impl<'de, const N: usize> Deserialize<'de> for AsciiArray<N>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> Display for AsciiArray<N>
impl<const N: usize> Display for AsciiArray<N>
Source§impl<const N: usize> Serialize for AsciiArray<N>
impl<const N: usize> Serialize for AsciiArray<N>
impl<const N: usize> Copy for AsciiArray<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for AsciiArray<N>
impl<const N: usize> RefUnwindSafe for AsciiArray<N>
impl<const N: usize> Send for AsciiArray<N>
impl<const N: usize> Sync for AsciiArray<N>
impl<const N: usize> Unpin for AsciiArray<N>
impl<const N: usize> UnwindSafe for AsciiArray<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)