pub struct Seq<'a>(pub Vec<Chain<'a>>);Expand description
A sequence: zero or more chains delimited by separators (<seq>).
Tuple Fields§
§0: Vec<Chain<'a>>Implementations§
Trait Implementations§
Source§impl Drop for Seq<'_>
Tear the tree down iteratively, so dropping a deeply-nested tree (the parser
bounds nesting only by memory) can’t overflow the stack the way the default
recursive Drop would. Item itself has no Drop, so leaves — the vast
majority of nodes — drop trivially; the cost falls only on the nesting nodes
walked here. The two recursion points are containers (a nested Seq) and
Prefixed (a boxed inner Item); both are drained onto a heap worklist
before the node holding them drops, so no Drop call nests.
impl Drop for Seq<'_>
Tear the tree down iteratively, so dropping a deeply-nested tree (the parser
bounds nesting only by memory) can’t overflow the stack the way the default
recursive Drop would. Item itself has no Drop, so leaves — the vast
majority of nodes — drop trivially; the cost falls only on the nesting nodes
walked here. The two recursion points are containers (a nested Seq) and
Prefixed (a boxed inner Item); both are drained onto a heap worklist
before the node holding them drops, so no Drop call nests.
impl<'a> Eq for Seq<'a>
impl<'a> StructuralPartialEq for Seq<'a>
Auto Trait Implementations§
impl<'a> Freeze for Seq<'a>
impl<'a> RefUnwindSafe for Seq<'a>
impl<'a> Send for Seq<'a>
impl<'a> Sync for Seq<'a>
impl<'a> Unpin for Seq<'a>
impl<'a> UnsafeUnpin for Seq<'a>
impl<'a> UnwindSafe for Seq<'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