pub enum SectionItemNode {
One {
name: &'static str,
child: u32,
},
Counted {
name: &'static str,
child: u32,
count: u32,
},
}Expand description
One named argument of a heterogeneous sections(...) other than its
unbounded tail (§7.5), in plan form.
The count is a plain u32 and not the crate::ast::RepeatCount newtype:
the invariant is discharged upstream, where the source span is still in hand
to report the violation against, and the plan is a flat &'static repr the
runtime reads without unwrapping anything.
Variants§
One
name: P — one section.
Counted
name: repeated(P, N) — exactly count consecutive sections, collected
into one Vec field. Never zero.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SectionItemNode
impl RefUnwindSafe for SectionItemNode
impl Send for SectionItemNode
impl Sync for SectionItemNode
impl Unpin for SectionItemNode
impl UnsafeUnpin for SectionItemNode
impl UnwindSafe for SectionItemNode
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