pub struct TokenStream { /* private fields */ }
Expand description
A token stream.
Implementations§
Trait Implementations§
Source§impl Debug for TokenStream
impl Debug for TokenStream
Source§impl Default for TokenStream
impl Default for TokenStream
Source§fn default() -> TokenStream
fn default() -> TokenStream
Returns the “default value” for a type. Read more
Source§impl<'a> IntoIterator for &'a TokenStream
impl<'a> IntoIterator for &'a TokenStream
Source§impl IntoIterator for TokenStream
impl IntoIterator for TokenStream
Source§impl OptionSpanned for TokenStream
impl OptionSpanned for TokenStream
Source§fn option_span(&self) -> Option<Span>
fn option_span(&self) -> Option<Span>
Get the optional span of the type.
Source§impl Parse for TokenStream
impl Parse for TokenStream
Source§impl PartialEq for TokenStream
impl PartialEq for TokenStream
Source§impl ToTokens for TokenStream
impl ToTokens for TokenStream
Source§fn to_tokens(
&self,
context: &mut MacroContext<'_, '_, '_>,
stream: &mut TokenStream,
) -> Result<()>
fn to_tokens( &self, context: &mut MacroContext<'_, '_, '_>, stream: &mut TokenStream, ) -> Result<()>
Turn the current item into tokens.
Source§impl TryClone for TokenStream
impl TryClone for TokenStream
impl Eq for TokenStream
impl StructuralPartialEq for TokenStream
Auto Trait Implementations§
impl Freeze for TokenStream
impl RefUnwindSafe for TokenStream
impl Send for TokenStream
impl Sync for TokenStream
impl Unpin for TokenStream
impl UnwindSafe for TokenStream
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§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.