pub enum SchemaError {
InvertedFloatRange(String, f64, f64),
InvertedIntegerRange(String, i64, i64),
EmptyCategorical(String),
EmptySetPool(String),
UnknownMutationRateField(String),
MutationRateOutOfRange(String, f64),
}Expand description
Errors returned by GenomeSchema::validate when a schema is malformed.
Variants§
InvertedFloatRange(String, f64, f64)
A Float field has a range where lo > hi.
InvertedIntegerRange(String, i64, i64)
An Integer field has a range where lo > hi.
EmptyCategorical(String)
A Categorical field has no choices to pick from.
EmptySetPool(String)
A Set field has an empty pool.
UnknownMutationRateField(String)
mutation_rates references a field name not present in fields.
MutationRateOutOfRange(String, f64)
A mutation rate is outside the [0.0, 1.0] interval.
Trait Implementations§
Source§impl Debug for SchemaError
impl Debug for SchemaError
Source§impl Display for SchemaError
impl Display for SchemaError
Source§impl Error for SchemaError
impl Error for SchemaError
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()
Source§impl PartialEq for SchemaError
impl PartialEq for SchemaError
impl StructuralPartialEq for SchemaError
Auto Trait Implementations§
impl Freeze for SchemaError
impl RefUnwindSafe for SchemaError
impl Send for SchemaError
impl Sync for SchemaError
impl Unpin for SchemaError
impl UnsafeUnpin for SchemaError
impl UnwindSafe for SchemaError
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