Struct parol::parser::parol_grammar_trait::AlternationBuilder
source · pub struct AlternationBuilder<'t> { /* private fields */ }
Expand description
Builder for Alternation
.
Implementations§
source§impl<'t> AlternationBuilder<'t>
impl<'t> AlternationBuilder<'t>
pub fn alternation_list(&mut self, value: Vec<AlternationList<'t>>) -> &mut Self
sourcepub fn build(&self) -> Result<Alternation<'t>, AlternationBuilderError>
pub fn build(&self) -> Result<Alternation<'t>, AlternationBuilderError>
Trait Implementations§
source§impl<'t> Clone for AlternationBuilder<'t>
impl<'t> Clone for AlternationBuilder<'t>
source§fn clone(&self) -> AlternationBuilder<'t>
fn clone(&self) -> AlternationBuilder<'t>
Returns a copy 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<'t> Freeze for AlternationBuilder<'t>
impl<'t> RefUnwindSafe for AlternationBuilder<'t>
impl<'t> Send for AlternationBuilder<'t>
impl<'t> Sync for AlternationBuilder<'t>
impl<'t> Unpin for AlternationBuilder<'t>
impl<'t> UnwindSafe for AlternationBuilder<'t>
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