Struct parol::analysis::k_tuples::KTuplesBuilder
source · pub struct KTuplesBuilder<'a> { /* private fields */ }
Expand description
Builder for KTuples
Implementations§
source§impl<'a> KTuplesBuilder<'a>
impl<'a> KTuplesBuilder<'a>
sourcepub fn max_terminal_index(&mut self, max_terminal_index: usize) -> &mut Self
pub fn max_terminal_index(&mut self, max_terminal_index: usize) -> &mut Self
Sets the maximum terminal index
sourcepub fn k_tuples(&mut self, k_tuples: &'a [KTuple]) -> &mut Self
pub fn k_tuples(&mut self, k_tuples: &'a [KTuple]) -> &mut Self
Sets the k-tuples This is optional and can be used to initialize the set with a set of k-tuples
sourcepub fn terminal_indices(
&mut self,
terminal_strings: &'a [&'a [TerminalIndex]],
) -> &mut Self
pub fn terminal_indices( &mut self, terminal_strings: &'a [&'a [TerminalIndex]], ) -> &mut Self
Sets the terminal strings This is optional and can be used to initialize the set with a set of terminal strings
sourcepub fn eps(&self) -> Result<KTuples, String>
pub fn eps(&self) -> Result<KTuples, String>
Creates an epsilon item, i.e. a set with exactly one epsilon k-tuple
Trait Implementations§
source§impl<'a> Clone for KTuplesBuilder<'a>
impl<'a> Clone for KTuplesBuilder<'a>
source§fn clone(&self) -> KTuplesBuilder<'a>
fn clone(&self) -> KTuplesBuilder<'a>
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 moresource§impl<'a> Debug for KTuplesBuilder<'a>
impl<'a> Debug for KTuplesBuilder<'a>
source§impl<'a> Default for KTuplesBuilder<'a>
impl<'a> Default for KTuplesBuilder<'a>
source§fn default() -> KTuplesBuilder<'a>
fn default() -> KTuplesBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for KTuplesBuilder<'a>
impl<'a> RefUnwindSafe for KTuplesBuilder<'a>
impl<'a> Send for KTuplesBuilder<'a>
impl<'a> Sync for KTuplesBuilder<'a>
impl<'a> Unpin for KTuplesBuilder<'a>
impl<'a> UnwindSafe for KTuplesBuilder<'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