Struct ItemInfo

#[non_exhaustive]
pub struct ItemInfo<'a> { pub name: &'a str, pub kind: ItemKind }

A struct providing information about the item being passed to ParseCallbacks::generated_name_override.

Fields

name: &'a str

The name of the item

kind: ItemKind

The kind of item

Trait Implementations

impl<'a> Clone for ItemInfo<'a>

fn clone(&self) -> ItemInfo<'a>

impl<'a> Copy for ItemInfo<'a>

Auto Trait Implementations

impl<'a> Freeze for ItemInfo<'a>

impl<'a> RefUnwindSafe for ItemInfo<'a>

impl<'a> Send for ItemInfo<'a>

impl<'a> Sync for ItemInfo<'a>

impl<'a> Unpin for ItemInfo<'a>

impl<'a> UnsafeUnpin for ItemInfo<'a>

impl<'a> UnwindSafe for ItemInfo<'a>

Blanket Implementations

impl<T> Any for ItemInfo<'a> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ItemInfo<'a> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ItemInfo<'a> where T: ?Sized,

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

impl<T> CloneToUninit for ItemInfo<'a> where T: Clone,

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

impl<T> From<T> for ItemInfo<'a>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for ItemInfo<'a>

impl<T> ToOwned for ItemInfo<'a> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for ItemInfo<'a> where U: From<T>,

fn into(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<U> for ItemInfo<'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 ItemInfo<'a> where U: TryFrom<T>,

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