pub enum Error {
Show 22 variants
ExtensionNotAllowed(String, String),
ImageError(ImageError),
ParseFloat(ParseFloatError),
ParseInt(ParseIntError),
CharacterError(String),
BoundaryError(String),
NotFound(&'static str),
NullCString(NulError),
Matrix(&'static str),
Parse(&'static str),
Integration(String),
Io(Error),
MeshParse(String),
FloatConversion,
Custom(String),
PieceWiseDims,
Unimplemented,
Infallible,
WrongDims,
Overflow,
Receiver(RecvError),
Writing,
}Expand description
§General Information
Error enum to use on all functions. Contains personalized errors with a corresponding explanation
§Arms
ExtensionNotAllowed- Files like shaders, meshes or font maps need a specific extension. When the extension is not appropiate, this error is thrownImageError- Errors related to image reading and parsingParseFloat- Error while parsing a floatParseInt- Error while parsing an intCharacterError- Error while creating the character set for the windowNotFound- Error while looking for filesNullCString- Error while converting to c-typesMatrix- Errors ocurring while using matricesParse- Error while interpreting filesIntegration- Error on numeric integrationIo- Error on IO operationsMeshParse- Error while parsing a meshFloatConversion- Error on float conversion betweeen f64 and f32Custom- Less common errorsPieceWiseDims- Error while creating a piecewise functionUnimplemented- Error that should not existInfallible- Error that never happensWrongDims- Error while operating on vectors and matricesOverflow- Error when a number overflowsReceiver- Error on communication between threadsWriting- Error while writing to file values of equation
Variants§
ExtensionNotAllowed(String, String)
ImageError(ImageError)
ParseFloat(ParseFloatError)
ParseInt(ParseIntError)
CharacterError(String)
BoundaryError(String)
NotFound(&'static str)
NullCString(NulError)
Matrix(&'static str)
Parse(&'static str)
Integration(String)
Io(Error)
MeshParse(String)
FloatConversion
Custom(String)
PieceWiseDims
Unimplemented
Infallible
WrongDims
Overflow
Receiver(RecvError)
Writing
Implementations§
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<ImageError> for Error
impl From<ImageError> for Error
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for Error
impl From<ParseFloatError> for Error
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more