#[non_exhaustive]pub enum RecordStringError {
BadIndex(usize, usize),
BadCharacter(TryFromIntError),
BadEncoding(FromUtf8Error),
}
Expand description
Potential errors when trying to extract a string from a record.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadIndex(usize, usize)
The start index for the string is invalid.
BadCharacter(TryFromIntError)
A field in the record is too large to fit in a byte.
BadEncoding(FromUtf8Error)
The string doesn’t look like valid UTF-8.
Trait Implementations§
Source§impl Debug for RecordStringError
impl Debug for RecordStringError
Source§impl Display for RecordStringError
impl Display for RecordStringError
Source§impl Error for RecordStringError
impl Error for RecordStringError
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<FromUtf8Error> for RecordStringError
impl From<FromUtf8Error> for RecordStringError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<RecordStringError> for DataLayoutError
impl From<RecordStringError> for DataLayoutError
Source§fn from(source: RecordStringError) -> Self
fn from(source: RecordStringError) -> Self
Converts to this type from the input type.
Source§impl From<RecordStringError> for MapError
impl From<RecordStringError> for MapError
Source§fn from(source: RecordStringError) -> Self
fn from(source: RecordStringError) -> Self
Converts to this type from the input type.
Source§impl From<RecordStringError> for RecordMapError
impl From<RecordStringError> for RecordMapError
Source§fn from(source: RecordStringError) -> Self
fn from(source: RecordStringError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for RecordStringError
impl From<TryFromIntError> for RecordStringError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RecordStringError
impl RefUnwindSafe for RecordStringError
impl Send for RecordStringError
impl Sync for RecordStringError
impl Unpin for RecordStringError
impl UnwindSafe for RecordStringError
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