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§
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 moreimpl 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§
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