Struct sway_ast::token::TokenStream
source · pub struct TokenStream { /* private fields */ }Implementations§
source§impl TokenStream
impl TokenStream
pub fn token_trees(&self) -> &[TokenTree]
Trait Implementations§
source§impl Clone for TokenStream
impl Clone for TokenStream
source§fn clone(&self) -> TokenStream
fn clone(&self) -> TokenStream
Returns a copy 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 Debug for TokenStream
impl Debug for TokenStream
source§impl Hash for TokenStream
impl Hash for TokenStream
source§impl PartialEq<TokenStream> for TokenStream
impl PartialEq<TokenStream> for TokenStream
source§fn eq(&self, other: &TokenStream) -> bool
fn eq(&self, other: &TokenStream) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<TokenStream> for TokenStream
impl PartialOrd<TokenStream> for TokenStream
source§fn partial_cmp(&self, other: &TokenStream) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenStream) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more