pub enum HomomorphismError {
ArityMismatch {
symbol: Symbol,
first: usize,
second: usize,
},
ConflictingSourceTerm {
symbol: Symbol,
},
MissingVariable {
symbol: Symbol,
variable: usize,
},
DuplicateVariable {
symbol: Symbol,
variable: usize,
},
OutOfRangeVariable {
symbol: Symbol,
variable: usize,
arity: usize,
},
UnmappedSymbol {
symbol: Symbol,
},
ApplyVariableOutOfRange {
variable: usize,
arity: usize,
},
}Expand description
Error returned when constructing or applying a homomorphism.
Variants§
ArityMismatch
The same source symbol was registered twice with different source arity.
Fields
ConflictingSourceTerm
The same source symbol was registered twice with different image terms.
MissingVariable
A required variable does not occur in the image term.
DuplicateVariable
A variable occurs more than once in the image term.
Fields
OutOfRangeVariable
The image term mentions a variable outside the source arity.
Fields
UnmappedSymbol
A source tree contains a symbol for which no image term was registered.
ApplyVariableOutOfRange
Applying a homomorphism found a variable that has no corresponding child.
Trait Implementations§
Source§impl Clone for HomomorphismError
impl Clone for HomomorphismError
Source§fn clone(&self) -> HomomorphismError
fn clone(&self) -> HomomorphismError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HomomorphismError
impl Debug for HomomorphismError
Source§impl Display for HomomorphismError
impl Display for HomomorphismError
impl Eq for HomomorphismError
Source§impl Error for HomomorphismError
impl Error for HomomorphismError
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 From<HomomorphismError> for IrtgError
impl From<HomomorphismError> for IrtgError
Source§fn from(source: HomomorphismError) -> Self
fn from(source: HomomorphismError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HomomorphismError
impl PartialEq for HomomorphismError
Source§fn eq(&self, other: &HomomorphismError) -> bool
fn eq(&self, other: &HomomorphismError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HomomorphismError
Auto Trait Implementations§
impl Freeze for HomomorphismError
impl RefUnwindSafe for HomomorphismError
impl Send for HomomorphismError
impl Sync for HomomorphismError
impl Unpin for HomomorphismError
impl UnsafeUnpin for HomomorphismError
impl UnwindSafe for HomomorphismError
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.