pub enum CoercionLevel {
Info,
Warn,
}Expand description
Severity of a recorded coercion. Info = Tier 1 lossless. Warn = Tier 2 lossy-structural.
Tier 3 (lossy-semantic) coercions are not recorded — they fail the run via ElError::Coercion.
Variants§
Trait Implementations§
Source§impl Clone for CoercionLevel
impl Clone for CoercionLevel
Source§fn clone(&self) -> CoercionLevel
fn clone(&self) -> CoercionLevel
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 CoercionLevel
impl Debug for CoercionLevel
Source§impl PartialEq for CoercionLevel
impl PartialEq for CoercionLevel
Source§fn eq(&self, other: &CoercionLevel) -> bool
fn eq(&self, other: &CoercionLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CoercionLevel
impl Eq for CoercionLevel
impl StructuralPartialEq for CoercionLevel
Auto Trait Implementations§
impl Freeze for CoercionLevel
impl RefUnwindSafe for CoercionLevel
impl Send for CoercionLevel
impl Sync for CoercionLevel
impl Unpin for CoercionLevel
impl UnsafeUnpin for CoercionLevel
impl UnwindSafe for CoercionLevel
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.