pub enum MistakeKey {
Text(String),
Int(i64),
}Expand description
What a literal mistake matches: text for text rules, an integer for int.
Variants§
Text(String)
An answer text, compared after the rule’s normalization.
Int(i64)
An integer, compared after parsing.
Trait Implementations§
Source§impl Clone for MistakeKey
impl Clone for MistakeKey
Source§fn clone(&self) -> MistakeKey
fn clone(&self) -> MistakeKey
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 MistakeKey
impl Debug for MistakeKey
impl Eq for MistakeKey
Source§impl From<&str> for MistakeKey
impl From<&str> for MistakeKey
Source§impl From<String> for MistakeKey
impl From<String> for MistakeKey
Source§impl From<i64> for MistakeKey
impl From<i64> for MistakeKey
Source§impl PartialEq for MistakeKey
impl PartialEq for MistakeKey
impl StructuralPartialEq for MistakeKey
Auto Trait Implementations§
impl Freeze for MistakeKey
impl RefUnwindSafe for MistakeKey
impl Send for MistakeKey
impl Sync for MistakeKey
impl Unpin for MistakeKey
impl UnsafeUnpin for MistakeKey
impl UnwindSafe for MistakeKey
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.