pub struct StrLenError<const N: usize> {
pub src_len: usize,
}Expand description
Failed to build StrArray<N> from a different-length &str.
Fields§
§src_len: usizeThe length of the source string that didn’t match N.
Implementations§
Source§impl<const N: usize> StrLenError<N>
impl<const N: usize> StrLenError<N>
Sourcepub const fn const_panic(self) -> !
pub const fn const_panic(self) -> !
Panic in const with this error.
Trait Implementations§
Source§impl<const N: usize> Clone for StrLenError<N>
impl<const N: usize> Clone for StrLenError<N>
Source§fn clone(&self) -> StrLenError<N>
fn clone(&self) -> StrLenError<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 StrLenError<N>
impl<const N: usize> Debug for StrLenError<N>
Source§impl<const N: usize> Display for StrLenError<N>
impl<const N: usize> Display for StrLenError<N>
Source§impl<const N: usize> Error for StrLenError<N>
Available on has_core_error or crate feature std only.
impl<const N: usize> Error for StrLenError<N>
Available on
has_core_error or crate feature std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl<const N: usize> Copy for StrLenError<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for StrLenError<N>
impl<const N: usize> RefUnwindSafe for StrLenError<N>
impl<const N: usize> Send for StrLenError<N>
impl<const N: usize> Sync for StrLenError<N>
impl<const N: usize> Unpin for StrLenError<N>
impl<const N: usize> UnwindSafe for StrLenError<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