pub enum SectionBody {
Items {
value: Option<NodeId>,
bindings: Vec<BindingSource>,
},
Block(SourceId),
}Expand description
The body of a section.
Mirrors grammar: SectionBody: [ ValueBinding ] { Binding } | Begin Eure End ;
Variants§
Items
Pattern #4: @ section (items follow) - [ ValueBinding ] { Binding }
Fields
§
bindings: Vec<BindingSource>Bindings in the section
Block(SourceId)
Pattern #5/#6: @ section { eure } - Begin Eure End
Trait Implementations§
Source§impl Clone for SectionBody
impl Clone for SectionBody
Source§fn clone(&self) -> SectionBody
fn clone(&self) -> SectionBody
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SectionBody
impl RefUnwindSafe for SectionBody
impl Send for SectionBody
impl Sync for SectionBody
impl Unpin for SectionBody
impl UnwindSafe for SectionBody
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