Struct DeriveInfo

struct DeriveInfo<'a> { ... }

Relevant information about a type to which new derive attributes will be added using ParseCallbacks::add_derives.

Fields

name: &'a str

The name of the type.

kind: TypeKind

The kind of the type.

Implementations

impl<'a> Debug for DeriveInfo<'a>

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

impl<'a> Freeze for DeriveInfo<'a>

impl<'a> RefUnwindSafe for DeriveInfo<'a>

impl<'a> Send for DeriveInfo<'a>

impl<'a> Sync for DeriveInfo<'a>

impl<'a> Unpin for DeriveInfo<'a>

impl<'a> UnwindSafe for DeriveInfo<'a>

impl<T> Any for DeriveInfo<'a>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for DeriveInfo<'a>

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

impl<T> BorrowMut for DeriveInfo<'a>

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

impl<T> From for DeriveInfo<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for DeriveInfo<'a>

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 DeriveInfo<'a>

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

impl<T, U> TryInto for DeriveInfo<'a>

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