Struct proc_macro_kwargs::parse::Syn
source · pub struct Syn<T: Parse>(pub T);
Expand description
Tuple Fields§
§0: T
Implementations§
Trait Implementations§
source§impl<T> MacroArg for Syn<T>where
T: Parse,
impl<T> MacroArg for Syn<T>where
T: Parse,
source§fn parse_macro_arg(stream: ParseStream<'_>) -> Result<Self>
fn parse_macro_arg(stream: ParseStream<'_>) -> Result<Self>
Parse the argument to the macro
source§impl<T: PartialEq + Parse> PartialEq for Syn<T>
impl<T: PartialEq + Parse> PartialEq for Syn<T>
source§impl<T: Parse + ToTokens> ToTokens for Syn<T>
impl<T: Parse + ToTokens> ToTokens for Syn<T>
source§fn to_tokens(&self, stream: &mut TokenStream)
fn to_tokens(&self, stream: &mut TokenStream)
source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
source§fn into_token_stream(self) -> TokenStream
fn into_token_stream(self) -> TokenStream
impl<T: Copy + Parse> Copy for Syn<T>
impl<T: Eq + Parse> Eq for Syn<T>
impl<T: Parse> StructuralPartialEq for Syn<T>
Auto Trait Implementations§
impl<T> Freeze for Syn<T>where
T: Freeze,
impl<T> RefUnwindSafe for Syn<T>where
T: RefUnwindSafe,
impl<T> Send for Syn<T>where
T: Send,
impl<T> Sync for Syn<T>where
T: Sync,
impl<T> Unpin for Syn<T>where
T: Unpin,
impl<T> UnwindSafe for Syn<T>where
T: 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<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> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
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.