pub enum SampleParseError {
IntField(ParseIntError),
FloatField(ParseFloatError),
UnknownStructure(isize),
IncorrectNumFields(usize),
}
Expand description
Error in parsing a SWC sample (row).
Variants§
IntField(ParseIntError)
A field which should be an integer could not be parsed.
FloatField(ParseFloatError)
A field which should be a float/ decimal could not be parsed.
UnknownStructure(isize)
The value of the structure
field was not recognised.
Not checked for structure enums with a catch-all variant.
IncorrectNumFields(usize)
Line terminated early; more fields expected.
Trait Implementations§
Source§impl Debug for SampleParseError
impl Debug for SampleParseError
Source§impl Display for SampleParseError
impl Display for SampleParseError
Source§impl Error for SampleParseError
impl Error for SampleParseError
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<ParseFloatError> for SampleParseError
impl From<ParseFloatError> for SampleParseError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for SampleParseError
impl From<ParseIntError> for SampleParseError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
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 SampleParseError
impl RefUnwindSafe for SampleParseError
impl Send for SampleParseError
impl Sync for SampleParseError
impl Unpin for SampleParseError
impl UnwindSafe for SampleParseError
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