pub enum TypeMismatchPolicy {
Different,
CompareDisplayString,
}Expand description
How a typed value is compared against a value of a different type.
Variants§
Different
Different types are always TypeChanged. Default.
CompareDisplayString
Compare their display strings instead (for human-friendly reports only).
Trait Implementations§
Source§impl Clone for TypeMismatchPolicy
impl Clone for TypeMismatchPolicy
Source§fn clone(&self) -> TypeMismatchPolicy
fn clone(&self) -> TypeMismatchPolicy
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 moreimpl Copy for TypeMismatchPolicy
Source§impl Debug for TypeMismatchPolicy
impl Debug for TypeMismatchPolicy
Source§impl Default for TypeMismatchPolicy
impl Default for TypeMismatchPolicy
Source§fn default() -> TypeMismatchPolicy
fn default() -> TypeMismatchPolicy
Returns the “default value” for a type. Read more
impl Eq for TypeMismatchPolicy
Source§impl PartialEq for TypeMismatchPolicy
impl PartialEq for TypeMismatchPolicy
impl StructuralPartialEq for TypeMismatchPolicy
Auto Trait Implementations§
impl Freeze for TypeMismatchPolicy
impl RefUnwindSafe for TypeMismatchPolicy
impl Send for TypeMismatchPolicy
impl Sync for TypeMismatchPolicy
impl Unpin for TypeMismatchPolicy
impl UnsafeUnpin for TypeMismatchPolicy
impl UnwindSafe for TypeMismatchPolicy
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.