pub enum SwcParseError {
Read(Error),
SampleParse(SampleParseError),
HeaderParse(String),
}
Expand description
Error for a SWC file which cannot be parsed
Variants§
Read(Error)
A line could not be read from the file.
SampleParse(SampleParseError)
The line could not be parsed as a SwcSample.
HeaderParse(String)
The SWC header could not be parsed.
Trait Implementations§
Source§impl Debug for SwcParseError
impl Debug for SwcParseError
Source§impl Display for SwcParseError
impl Display for SwcParseError
Source§impl Error for SwcParseError
impl Error for SwcParseError
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<Error> for SwcParseError
impl From<Error> for SwcParseError
Source§impl From<SampleParseError> for SwcParseError
impl From<SampleParseError> for SwcParseError
Source§fn from(source: SampleParseError) -> Self
fn from(source: SampleParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SwcParseError
impl !RefUnwindSafe for SwcParseError
impl Send for SwcParseError
impl Sync for SwcParseError
impl Unpin for SwcParseError
impl !UnwindSafe for SwcParseError
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