pub struct FixedLengthString<const N: usize>(pub [Char; N]);
Expand description
A fixed length ASCII string of length N
Tuple Fields§
§0: [Char; N]
Implementations§
Trait Implementations§
Source§impl<const N: usize> Clone for FixedLengthString<N>
impl<const N: usize> Clone for FixedLengthString<N>
Source§fn clone(&self) -> FixedLengthString<N>
fn clone(&self) -> FixedLengthString<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 FixedLengthString<N>
impl<const N: usize> Debug for FixedLengthString<N>
Source§impl<'de, const N: usize> Deserialize<'de> for FixedLengthString<N>
Available on crate feature serde
only.
impl<'de, const N: usize> Deserialize<'de> for FixedLengthString<N>
Available on crate feature
serde
only.Source§fn deserialize<D>(deserializer: D) -> Result<FixedLengthString<N>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<FixedLengthString<N>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> Display for FixedLengthString<N>
impl<const N: usize> Display for FixedLengthString<N>
Source§impl<const N: usize> From<FixedLengthString<N>> for String
impl<const N: usize> From<FixedLengthString<N>> for String
Source§fn from(value: FixedLengthString<N>) -> Self
fn from(value: FixedLengthString<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> Hash for FixedLengthString<N>
impl<const N: usize> Hash for FixedLengthString<N>
Source§impl<const N: usize> PartialEq for FixedLengthString<N>
impl<const N: usize> PartialEq for FixedLengthString<N>
Source§impl<const N: usize> PartialOrd for FixedLengthString<N>
impl<const N: usize> PartialOrd for FixedLengthString<N>
Source§impl<const N: usize> Serialize for FixedLengthString<N>
Available on crate feature serde
only.
impl<const N: usize> Serialize for FixedLengthString<N>
Available on crate feature
serde
only.Auto Trait Implementations§
impl<const N: usize> Freeze for FixedLengthString<N>
impl<const N: usize> RefUnwindSafe for FixedLengthString<N>
impl<const N: usize> Send for FixedLengthString<N>
impl<const N: usize> Sync for FixedLengthString<N>
impl<const N: usize> Unpin for FixedLengthString<N>
impl<const N: usize> UnwindSafe for FixedLengthString<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