pub struct SnifedEntries {
pub entries: Vec<SnifedEntry>,
pub macro_input: TokenStream,
/* private fields */
}Expand description
Represents a group of snif! entries.
Used to represent a group of snif! entries in a macro.
Example:
token_goblin::snif!(Foo, Bar in stringify_our!("extra tokens"));
// -> "Foo => { struct Foo { x : i32, } }" is one entry
// "Bar => { struct Bar { x : i32, } }" is another
//
// "extra tokens" is passed to the macro as input.Fields§
§entries: Vec<SnifedEntry>§macro_input: TokenStreamImplementations§
Trait Implementations§
Source§impl Clone for SnifedEntries
impl Clone for SnifedEntries
Source§fn clone(&self) -> SnifedEntries
fn clone(&self) -> SnifedEntries
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Parse for SnifedEntries
impl Parse for SnifedEntries
fn parse(input: ParseStream<'_>) -> Result<Self>
Source§impl ToTokens for SnifedEntries
impl ToTokens for SnifedEntries
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &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 !Send for SnifedEntries
impl !Sync for SnifedEntries
impl Freeze for SnifedEntries
impl RefUnwindSafe for SnifedEntries
impl Unpin for SnifedEntries
impl UnsafeUnpin for SnifedEntries
impl UnwindSafe for SnifedEntries
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> 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.