Enum DeriveTrait
pub enum DeriveTrait
Which trait to consider when doing the CannotDerive analysis.
Variants
-
Copy The
Copytrait.-
Debug The
Debugtrait.-
Default The
Defaulttrait.-
Hash The
Hashtrait.-
PartialEqOrPartialOrd The
PartialEqandPartialOrdtraits.
Trait Implementations
impl Clone for DeriveTrait
fn clone(&self) -> DeriveTrait
impl Copy for DeriveTrait
impl Debug for DeriveTrait
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for DeriveTrait
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for DeriveTrait
impl Hash for DeriveTrait
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for DeriveTrait
fn eq(&self, other: &DeriveTrait) -> bool
impl StructuralPartialEq for DeriveTrait
Auto Trait Implementations
impl Freeze for DeriveTrait
impl RefUnwindSafe for DeriveTrait
impl Send for DeriveTrait
impl Sync for DeriveTrait
impl Unpin for DeriveTrait
impl UnsafeUnpin for DeriveTrait
impl UnwindSafe for DeriveTrait
Blanket Implementations
impl<T> Any for DeriveTrait
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DeriveTrait
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DeriveTrait
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DeriveTrait
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DeriveTrait
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for DeriveTrait
impl<T> ToOwned for DeriveTrait
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for DeriveTrait
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for DeriveTrait
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DeriveTrait
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for DeriveTrait
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>