pub enum Fname<'r> {
Name(&'r Ident),
Index(Index),
}Expand description
What would ${fname} expand to? As type from syn.
Implements quote::IdentFragment and ToTokens.
Variants§
Trait Implementations§
Source§impl IdentFrag for Fname<'_>
impl IdentFrag for Fname<'_>
type BadIdent = IdentFragInfallible
Source§fn frag_to_tokens(
&self,
out: &mut TokenStream,
) -> Result<(), IdentFragInfallible>
fn frag_to_tokens( &self, out: &mut TokenStream, ) -> Result<(), IdentFragInfallible>
(Try to) convert to tokens (ie, real
Ident) Read moreSource§fn note_atoms(&self, out: &mut Vec<AtomForReport>)
fn note_atoms(&self, out: &mut Vec<AtomForReport>)
Source§impl ToTokens for Fname<'_>
impl ToTokens for Fname<'_>
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,
impl<'r> Eq for Fname<'r>
impl<'r> StructuralPartialEq for Fname<'r>
Auto Trait Implementations§
impl<'r> Freeze for Fname<'r>
impl<'r> RefUnwindSafe for Fname<'r>
impl<'r> !Send for Fname<'r>
impl<'r> !Sync for Fname<'r>
impl<'r> Unpin for Fname<'r>
impl<'r> UnwindSafe for Fname<'r>
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<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.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.