pub struct Group<'a> {
pub seq: Seq<'a>,
pub span: Span,
}Expand description
The sequence inside a bracket group, with the group’s location. A group is
the one node that stores its span: a leaf borrows its text from the source,
so its span follows from where the slice starts (see Item::span), but an
empty () has no slice to measure, and whitespace may stand between a
bracket and the first item.
Fields§
§seq: Seq<'a>§span: SpanCovers the brackets, but not the sigils of a prefixed group.
Trait Implementations§
impl<'a> Eq for Group<'a>
impl<'a> StructuralPartialEq for Group<'a>
Auto Trait Implementations§
impl<'a> Freeze for Group<'a>
impl<'a> RefUnwindSafe for Group<'a>
impl<'a> Send for Group<'a>
impl<'a> Sync for Group<'a>
impl<'a> Unpin for Group<'a>
impl<'a> UnsafeUnpin for Group<'a>
impl<'a> UnwindSafe for Group<'a>
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