#[non_exhaustive]pub enum StudyError {
Show 16 variants
UnknownStudy(String),
UnknownStudyId(usize),
UnknownInput(String),
InvalidInput {
id: String,
reason: String,
},
EmptyInputId {
index: usize,
},
NotConfigured,
InvalidPrecision(usize),
InvalidPlotWidth {
plot: usize,
width: f32,
},
InvalidLevelValue {
level: usize,
value: f64,
},
PlotCount {
expected: usize,
found: usize,
},
UnknownSourceStudy(usize),
UnknownSourcePlot {
id: usize,
plot: usize,
},
CyclicSource,
StudyLimitReached(RefusedStudy),
NotClipboard,
Clipboard(Error),
}Expand description
Why a study was not built, edited, given a source or added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownStudy(String)
The factory knows no study of this name.
UnknownStudyId(usize)
No study on the chart has this id.
UnknownInput(String)
The study has no input with this id.
InvalidInput
The study refused the value of an input.
Fields
EmptyInputId
A declared input has an empty id.
NotConfigured
The study edits its presentation only inside a ConfiguredStudy.
InvalidPrecision(usize)
The precision is above 12 decimals.
InvalidPlotWidth
A plot width is not finite or not between 0.5 and 10.
InvalidLevelValue
A horizontal level value is NaN or infinite.
PlotCount
The settings hold another number of plot styles than the study draws.
UnknownSourceStudy(usize)
The source names a study the chart does not have.
UnknownSourcePlot
The source names a plot its study does not draw.
CyclicSource
The study would read its own output, directly or through other studies.
StudyLimitReached(RefusedStudy)
The chart holds as many studies as its study cap allows. The refused study comes back unchanged.
NotClipboard
The text is not study clipboard text.
Clipboard(Error)
The copied study cannot be read.
Trait Implementations§
Source§impl Debug for StudyError
impl Debug for StudyError
Source§impl Display for StudyError
impl Display for StudyError
Source§impl Error for StudyError
impl Error for StudyError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !Freeze for StudyError
impl !RefUnwindSafe for StudyError
impl !UnwindSafe for StudyError
impl Send for StudyError
impl Sync for StudyError
impl Unpin for StudyError
impl UnsafeUnpin for StudyError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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