pub struct MacroItem<'a> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<'a> CrateItem<'a> for MacroItem<'a>
impl<'a> CrateItem<'a> for MacroItem<'a>
type Inner = String
fn downcast(inner: &ItemEnum) -> Option<&Self::Inner>
fn new(krate: &'a Crate, item: &'a Item, macro_: &'a Self::Inner) -> Self
fn item(&self) -> &'a Item
fn inner(&self) -> &'a Self::Inner
fn krate(&self) -> &'a Crate
fn is_public(&self) -> bool
fn is_crate_item(&self) -> bool
fn is_root_item(&self) -> bool
fn is_external_item(&self) -> bool
fn id(&'a self) -> &'a Id
fn module(&self) -> Option<ModuleItem<'a>>
impl<'a> Copy for MacroItem<'a>
impl<'a> Eq for MacroItem<'a>
impl<'a> StructuralPartialEq for MacroItem<'a>
Auto Trait Implementations§
impl<'a> Freeze for MacroItem<'a>
impl<'a> RefUnwindSafe for MacroItem<'a>
impl<'a> Send for MacroItem<'a>
impl<'a> Sync for MacroItem<'a>
impl<'a> Unpin for MacroItem<'a>
impl<'a> UnwindSafe for MacroItem<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.