pub enum DerivError<A>{
Show 14 variants
UnexpectedEmpty {
x: A,
open: bool,
},
UnexpectedSymbol {
x: A,
expected: A,
open: bool,
},
MaxCardinalityZeroFoundValue {
x: A,
},
RangeNegativeLowerBound {
min: usize,
},
RangeLowerBoundBiggerMax {
symbol: A,
card: Cardinality,
},
RangeLowerBoundBiggerMaxExpr {
expr: Box<Rbe<A>>,
card: Cardinality,
},
NonNullable {
non_nullable_rbe: Box<Rbe<A>>,
bag: Bag<A>,
expr: Box<Rbe<A>>,
},
CardinalityFail {
symbol: A,
expected_cardinality: Cardinality,
current_number: usize,
},
CardinalityFailRepeat {
expected_cardinality: Cardinality,
current_number: usize,
},
CardinalityZeroZeroDeriv {
symbol: A,
},
ShouldFailButPassed {
name: String,
},
OrValuesFail {
e: Box<Rbe<A>>,
failures: Failures<A>,
},
MkOrValuesFail,
DerivBagError {
error_msg: String,
processed: Box<Bag<A>>,
bag: Box<Bag<A>>,
expr: Box<Rbe<A>>,
current: Box<Rbe<A>>,
value: A,
open: bool,
},
}
Variants§
UnexpectedEmpty
UnexpectedSymbol
MaxCardinalityZeroFoundValue
Fields
§
x: A
RangeNegativeLowerBound
RangeLowerBoundBiggerMax
RangeLowerBoundBiggerMaxExpr
NonNullable
CardinalityFail
CardinalityFailRepeat
CardinalityZeroZeroDeriv
Fields
§
symbol: A
ShouldFailButPassed
OrValuesFail
MkOrValuesFail
DerivBagError
Trait Implementations§
Source§impl<A> Clone for DerivError<A>
impl<A> Clone for DerivError<A>
Source§fn clone(&self) -> DerivError<A>
fn clone(&self) -> DerivError<A>
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<A> Debug for DerivError<A>
impl<A> Debug for DerivError<A>
Source§impl<'de, A> Deserialize<'de> for DerivError<A>
impl<'de, A> Deserialize<'de> for DerivError<A>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<A> Display for DerivError<A>
impl<A> Display for DerivError<A>
Source§impl<A> Error for DerivError<A>
impl<A> Error for DerivError<A>
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<A> Hash for DerivError<A>
impl<A> Hash for DerivError<A>
Source§impl<A> PartialEq for DerivError<A>
impl<A> PartialEq for DerivError<A>
Source§impl<A> Serialize for DerivError<A>
impl<A> Serialize for DerivError<A>
impl<A> Eq for DerivError<A>
impl<A> StructuralPartialEq for DerivError<A>
Auto Trait Implementations§
impl<A> Freeze for DerivError<A>where
A: Freeze,
impl<A> RefUnwindSafe for DerivError<A>where
A: RefUnwindSafe,
impl<A> Send for DerivError<A>where
A: Send,
impl<A> Sync for DerivError<A>where
A: Sync,
impl<A> Unpin for DerivError<A>where
A: Unpin,
impl<A> UnwindSafe for DerivError<A>where
A: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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