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: Span
Implementations
sourceimpl CommentedTokenStream
impl CommentedTokenStream
pub fn token_trees(&self) -> &[CommentedTokenTree]
pub fn strip_comments(self) -> TokenStream
Trait Implementations
sourceimpl Clone for CommentedTokenStream
impl Clone for CommentedTokenStream
sourcefn clone(&self) -> CommentedTokenStream
fn clone(&self) -> CommentedTokenStream
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommentedTokenStream
impl Debug for CommentedTokenStream
sourceimpl Hash for CommentedTokenStream
impl Hash for CommentedTokenStream
sourceimpl PartialEq<CommentedTokenStream> for CommentedTokenStream
impl PartialEq<CommentedTokenStream> for CommentedTokenStream
sourcefn 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 ==
. Read more
sourceimpl PartialOrd<CommentedTokenStream> for CommentedTokenStream
impl PartialOrd<CommentedTokenStream> for CommentedTokenStream
sourcefn partial_cmp(&self, other: &CommentedTokenStream) -> Option<Ordering>
fn partial_cmp(&self, other: &CommentedTokenStream) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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
impl Eq for CommentedTokenStream
impl StructuralEq for CommentedTokenStream
impl StructuralPartialEq for CommentedTokenStream
Auto Trait Implementations
impl RefUnwindSafe for CommentedTokenStream
impl Send for CommentedTokenStream
impl Sync for CommentedTokenStream
impl Unpin for CommentedTokenStream
impl UnwindSafe for CommentedTokenStream
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more