Enum DeriveTrait

enum DeriveTrait

Which trait to consider when doing the CannotDerive analysis.

Variants

Copy

The Copy trait.

Debug

The Debug trait.

Default

The Default trait.

Hash

The Hash trait.

PartialEqOrPartialOrd

The PartialEq and PartialOrd traits.

Implementations

impl Clone for DeriveTrait

fn clone(self: &Self) -> DeriveTrait

impl Copy for DeriveTrait

impl Debug for DeriveTrait

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Display for DeriveTrait

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for DeriveTrait

impl Freeze for DeriveTrait

impl Hash for DeriveTrait

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for DeriveTrait

fn eq(self: &Self, other: &DeriveTrait) -> bool

impl RefUnwindSafe for DeriveTrait

impl Send for DeriveTrait

impl StructuralPartialEq for DeriveTrait

impl Sync for DeriveTrait

impl Unpin for DeriveTrait

impl UnwindSafe for DeriveTrait

impl<T> Any for DeriveTrait

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for DeriveTrait

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for DeriveTrait

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for DeriveTrait

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for DeriveTrait

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for DeriveTrait

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for DeriveTrait

fn to_string(self: &Self) -> String

impl<T, U> Into for DeriveTrait

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for DeriveTrait

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for DeriveTrait

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>