pub enum BindSource {
Value(NodeId),
Array {
node: NodeId,
elements: Vec<ArrayElementSource>,
},
Block(SourceId),
}Expand description
The right-hand side of a binding.
Mirrors grammar: BindingRhs: ValueBinding | SectionBinding | TextBinding ;
Variants§
Value(NodeId)
Pattern #1: path = value (ValueBinding or TextBinding)
Array
Pattern #1b: path = [array with element trivia]
Used when an array has comments between elements that need to be preserved.
Fields
§
elements: Vec<ArrayElementSource>Per-element layout information (comments before each element)
Block(SourceId)
Pattern #2/#3: path { eure } (SectionBinding -> nested EureSource)
Trait Implementations§
Source§impl Clone for BindSource
impl Clone for BindSource
Source§fn clone(&self) -> BindSource
fn clone(&self) -> BindSource
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 BindSource
impl RefUnwindSafe for BindSource
impl Send for BindSource
impl Sync for BindSource
impl Unpin for BindSource
impl UnwindSafe for BindSource
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