Struct sway_ast::token::CommentedTokenStream
source · pub struct CommentedTokenStream {
pub token_trees: Vec<CommentedTokenTree>,
pub full_span: Span,
}Fields§
§token_trees: Vec<CommentedTokenTree>§full_span: SpanImplementations§
source§impl CommentedTokenStream
impl CommentedTokenStream
pub fn token_trees(&self) -> &[CommentedTokenTree]
pub fn strip_comments(self) -> TokenStream
Trait Implementations§
source§impl Clone for CommentedTokenStream
impl Clone for CommentedTokenStream
source§fn clone(&self) -> CommentedTokenStream
fn clone(&self) -> CommentedTokenStream
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 CommentedTokenStream
impl Debug for CommentedTokenStream
source§impl Hash for CommentedTokenStream
impl Hash for CommentedTokenStream
source§impl PartialEq<CommentedTokenStream> for CommentedTokenStream
impl PartialEq<CommentedTokenStream> for CommentedTokenStream
source§fn eq(&self, other: &CommentedTokenStream) -> bool
fn eq(&self, other: &CommentedTokenStream) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<CommentedTokenStream> for CommentedTokenStream
impl PartialOrd<CommentedTokenStream> for CommentedTokenStream
source§fn partial_cmp(&self, other: &CommentedTokenStream) -> Option<Ordering>
fn partial_cmp(&self, other: &CommentedTokenStream) -> 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