pub enum ScheduleDecodingError {
NotANumber(ParseIntError),
ZeroSampleInOneEncodedData,
InconsistentDimensions {
found: usize,
expected: usize,
why: DimensionsSource,
},
CouldntFindDims(String),
DataTooBig {
given: IxDyn,
minimum: IxDyn,
},
DifferentDimensions {
expected: usize,
line: usize,
found: usize,
},
}Expand description
An error that can occur while decoding a string as a schedule
Variants§
NotANumber(ParseIntError)
A value couldn’t be decoded as a number
ZeroSampleInOneEncodedData
A sample was zero when the schedule was expected to be encoded with the first sample being one
InconsistentDimensions
The dimensions expected of the data don’t match the dimensions expected by the callee
Fields
§
why: DimensionsSourceThe reason the dimensionality was expected
CouldntFindDims(String)
The length callback couldn’t find a length
DataTooBig
The data is too big to fit in the schedule
Fields
DifferentDimensions
The schedule contains lines of different dimensions
Trait Implementations§
Source§impl Clone for ScheduleDecodingError
impl Clone for ScheduleDecodingError
Source§fn clone(&self) -> ScheduleDecodingError
fn clone(&self) -> ScheduleDecodingError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScheduleDecodingError
impl Debug for ScheduleDecodingError
Source§impl Display for ScheduleDecodingError
impl Display for ScheduleDecodingError
Source§impl Error for ScheduleDecodingError
impl Error for ScheduleDecodingError
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()
Auto Trait Implementations§
impl Freeze for ScheduleDecodingError
impl RefUnwindSafe for ScheduleDecodingError
impl Send for ScheduleDecodingError
impl Sync for ScheduleDecodingError
impl Unpin for ScheduleDecodingError
impl UnwindSafe for ScheduleDecodingError
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