pub enum Error {
Utf8,
Utf16,
OutOfBounds,
}
Expand description
Every error possible when using ArrayString
Variants§
Utf8
Conversion between available byte slice and UTF-8 failed (invalid data or invalid utf-8 character index)
Utf16
Conversion between available u16
slice and string failed
OutOfBounds
Out of boundaries access
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<DecodeUtf16Error> for Error
impl From<DecodeUtf16Error> for Error
Source§fn from(_: DecodeUtf16Error) -> Self
fn from(_: DecodeUtf16Error) -> Self
Converts to this type from the input type.
Source§impl<'a> From<EncodeUtf16<'a>> for Error
impl<'a> From<EncodeUtf16<'a>> for Error
Source§fn from(_: EncodeUtf16<'_>) -> Self
fn from(_: EncodeUtf16<'_>) -> Self
Converts to this type from the input type.
Source§impl From<OutOfBounds> for Error
impl From<OutOfBounds> for Error
Source§fn from(_: OutOfBounds) -> Self
fn from(_: OutOfBounds) -> Self
Converts to this type from the input type.
impl Copy for Error
impl Eq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more