Struct sway_ast::token::GenericGroup
source · pub struct GenericGroup<T> {
pub delimiter: Delimiter,
pub token_stream: T,
pub span: Span,
}
Fields§
§delimiter: Delimiter
§token_stream: T
§span: Span
Implementations§
source§impl GenericGroup<CommentedTokenStream>
impl GenericGroup<CommentedTokenStream>
pub fn strip_comments(self) -> Group
Trait Implementations§
source§impl<T: Clone> Clone for GenericGroup<T>
impl<T: Clone> Clone for GenericGroup<T>
source§fn clone(&self) -> GenericGroup<T>
fn clone(&self) -> GenericGroup<T>
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<T: Debug> Debug for GenericGroup<T>
impl<T: Debug> Debug for GenericGroup<T>
source§impl<T> From<GenericGroup<T>> for GenericTokenTree<T>
impl<T> From<GenericGroup<T>> for GenericTokenTree<T>
source§fn from(group: GenericGroup<T>) -> Self
fn from(group: GenericGroup<T>) -> Self
Converts to this type from the input type.
source§impl<T: Hash> Hash for GenericGroup<T>
impl<T: Hash> Hash for GenericGroup<T>
source§impl<T: PartialEq> PartialEq<GenericGroup<T>> for GenericGroup<T>
impl<T: PartialEq> PartialEq<GenericGroup<T>> for GenericGroup<T>
source§fn eq(&self, other: &GenericGroup<T>) -> bool
fn eq(&self, other: &GenericGroup<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<GenericGroup<T>> for GenericGroup<T>
impl<T: PartialOrd> PartialOrd<GenericGroup<T>> for GenericGroup<T>
source§fn partial_cmp(&self, other: &GenericGroup<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &GenericGroup<T>) -> 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<T: Eq> Eq for GenericGroup<T>
impl<T> StructuralEq for GenericGroup<T>
impl<T> StructuralPartialEq for GenericGroup<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for GenericGroup<T>where T: RefUnwindSafe,
impl<T> Send for GenericGroup<T>where T: Send,
impl<T> Sync for GenericGroup<T>where T: Sync,
impl<T> Unpin for GenericGroup<T>where T: Unpin,
impl<T> UnwindSafe for GenericGroup<T>where T: UnwindSafe,
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