pub struct SyntheticMacroName<Kind>(Ident, Kind);Expand description
Name of a thing of kind Kind
Tuple Fields§
§0: Ident§1: KindImplementations§
Source§impl<K: SyntheticMacroKind> SyntheticMacroName<K>
impl<K: SyntheticMacroKind> SyntheticMacroName<K>
pub fn macro_name(&self) -> Ident
Trait Implementations§
Source§impl<Kind: Clone> Clone for SyntheticMacroName<Kind>
impl<Kind: Clone> Clone for SyntheticMacroName<Kind>
Source§fn clone(&self) -> SyntheticMacroName<Kind>
fn clone(&self) -> SyntheticMacroName<Kind>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Kind: Debug> Debug for SyntheticMacroName<Kind>
impl<Kind: Debug> Debug for SyntheticMacroName<Kind>
Source§impl<K> Display for SyntheticMacroName<K>
impl<K> Display for SyntheticMacroName<K>
Source§impl<K> IdentFragment for SyntheticMacroName<K>
impl<K> IdentFragment for SyntheticMacroName<K>
Source§impl<K: SyntheticMacroKind> Parse for SyntheticMacroName<K>
impl<K: SyntheticMacroKind> Parse for SyntheticMacroName<K>
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl<K> ToTokens for SyntheticMacroName<K>
impl<K> ToTokens for SyntheticMacroName<K>
Source§fn to_tokens(&self, out: &mut TokenStream)
fn to_tokens(&self, out: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl<Kind> Freeze for SyntheticMacroName<Kind>where
Kind: Freeze,
impl<Kind> RefUnwindSafe for SyntheticMacroName<Kind>where
Kind: RefUnwindSafe,
impl<Kind> !Send for SyntheticMacroName<Kind>
impl<Kind> !Sync for SyntheticMacroName<Kind>
impl<Kind> Unpin for SyntheticMacroName<Kind>where
Kind: Unpin,
impl<Kind> UnwindSafe for SyntheticMacroName<Kind>where
Kind: UnwindSafe,
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Spanned for T
impl<T> Spanned for T
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.