Enum fretboard_layout::open::Error
source · pub enum Error {
Io(Error),
ParseFloat(ParseFloatError),
ParseInt(ParseIntError),
ParseHandedness,
NoMetadata,
MissingField(&'static str),
}
Variants§
Io(Error)
Error reading the svg file
ParseFloat(ParseFloatError)
Error parsing a float type from the file’s metadata
ParseInt(ParseIntError)
Error parsing an integer type from the file’s metadata
ParseHandedness
Error parsing the neck’s handedness from the file’s metadata
NoMetadata
The file does not contain a Description element
MissingField(&'static str)
The file’s description is missing a metadata field
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseFloatError> for Error
impl From<ParseFloatError> for Error
source§fn from(e: ParseFloatError) -> Self
fn from(e: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseHandednessError> for Error
impl From<ParseHandednessError> for Error
source§fn from(_: ParseHandednessError) -> Self
fn from(_: ParseHandednessError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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