#[non_exhaustive]pub enum TableGenError {
InvalidSource,
InvalidSourceString(NulError),
InvalidUtf8Str(Utf8Error),
InvalidUtf8String(FromUtf8Error),
Parse,
MissingValue(String),
MissingDef(String),
MissingClass(String),
InitConversion {
from: &'static str,
to: &'static str,
},
InvalidSourceLocation,
Infallible(Infallible),
}
Expand description
Enum of TableGen errors.
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.
InvalidSource
InvalidSourceString(NulError)
InvalidUtf8Str(Utf8Error)
InvalidUtf8String(FromUtf8Error)
Parse
MissingValue(String)
MissingDef(String)
MissingClass(String)
InitConversion
InvalidSourceLocation
Infallible(Infallible)
Trait Implementations§
source§impl Clone for TableGenError
impl Clone for TableGenError
source§fn clone(&self) -> TableGenError
fn clone(&self) -> TableGenError
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 Debug for TableGenError
impl Debug for TableGenError
source§impl Display for TableGenError
impl Display for TableGenError
source§impl Error for TableGenError
impl Error for TableGenError
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 TableGenError
impl From<FromUtf8Error> for TableGenError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for TableGenError
impl From<Infallible> for TableGenError
source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
source§impl From<NulError> for TableGenError
impl From<NulError> for TableGenError
source§impl From<TableGenError> for SourceError<TableGenError>
impl From<TableGenError> for SourceError<TableGenError>
source§fn from(value: TableGenError) -> Self
fn from(value: TableGenError) -> Self
Converts to this type from the input type.
source§impl From<Utf8Error> for TableGenError
impl From<Utf8Error> for TableGenError
source§impl PartialEq for TableGenError
impl PartialEq for TableGenError
impl Eq for TableGenError
impl StructuralPartialEq for TableGenError
Auto Trait Implementations§
impl Freeze for TableGenError
impl RefUnwindSafe for TableGenError
impl Send for TableGenError
impl Sync for TableGenError
impl Unpin for TableGenError
impl UnwindSafe for TableGenError
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
)source§impl<E> WithLocation for Ewhere
E: Error,
impl<E> WithLocation for Ewhere
E: Error,
source§fn with_location<L: SourceLoc>(self, location: L) -> SourceError<Self>
fn with_location<L: SourceLoc>(self, location: L) -> SourceError<Self>
Creates a
SourceError
wrapper.