Enum caret::Error [−][src]
#[non_exhaustive]
pub enum Error {
InvalidInteger,
InvalidString,
}
Expand description
An error produced from type derived from type. These errors can only occur when trying to convert to a type made with caret_enum!
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.
InvalidInteger
Tried to convert to an enumeration type from an integer that didn’t represent a member of that enumeration.
InvalidString
Tried to convert to an enumeration type from a string that didn’t represent a member of that enumeration.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more