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 moreimpl Eq for TokenStream
impl StructuralEq for TokenStream
impl StructuralPartialEq for TokenStream
Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more