Struct DeriveInfo
#[non_exhaustive]
pub struct DeriveInfo<'a> { pub name: &'a str, pub kind: TypeKind }
Relevant information about a type to which new derive attributes will be added using
ParseCallbacks::add_derives.
Fields
name: &'a strThe name of the type.
kind: TypeKindThe kind of the type.
Trait Implementations
impl<'a> Debug for DeriveInfo<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
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> UnsafeUnpin for DeriveInfo<'a>
impl<'a> UnwindSafe for DeriveInfo<'a>
Blanket Implementations
impl<T> Any for DeriveInfo<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DeriveInfo<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DeriveInfo<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for DeriveInfo<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for DeriveInfo<'a>
impl<T, U> Into<U> for DeriveInfo<'a>
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 DeriveInfo<'a>
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 DeriveInfo<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>