Struct sway_ast::token::GenericGroup
source · [−]Fields
delimiter: Delimiter
token_stream: T
span: Span
Implementations
sourceimpl GenericGroup<CommentedTokenStream>
impl GenericGroup<CommentedTokenStream>
pub fn strip_comments(self) -> Group
Trait Implementations
sourceimpl<T: Clone> Clone for GenericGroup<T>
impl<T: Clone> Clone for GenericGroup<T>
sourcefn clone(&self) -> GenericGroup<T>
fn clone(&self) -> GenericGroup<T>
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<T: Debug> Debug for GenericGroup<T>
impl<T: Debug> Debug for GenericGroup<T>
sourceimpl<T> From<GenericGroup<T>> for GenericTokenTree<T>
impl<T> From<GenericGroup<T>> for GenericTokenTree<T>
sourcefn from(group: GenericGroup<T>) -> Self
fn from(group: GenericGroup<T>) -> Self
Converts to this type from the input type.
sourceimpl<T: Hash> Hash for GenericGroup<T>
impl<T: Hash> Hash for GenericGroup<T>
sourceimpl<T: PartialEq> PartialEq<GenericGroup<T>> for GenericGroup<T>
impl<T: PartialEq> PartialEq<GenericGroup<T>> for GenericGroup<T>
sourcefn 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 ==
. Read more
sourceimpl<T: PartialOrd> PartialOrd<GenericGroup<T>> for GenericGroup<T>
impl<T: PartialOrd> PartialOrd<GenericGroup<T>> for GenericGroup<T>
sourcefn partial_cmp(&self, other: &GenericGroup<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &GenericGroup<T>) -> 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<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
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