[−][src]Struct earlgrey::GrammarBuilder
Methods
impl GrammarBuilder
[src]
impl GrammarBuilder
pub fn add_nonterm<S: Into<String>>(&mut self, nt: S, ignoredup: bool) | [src] |
pub fn nonterm<S: Into<String>>(self, nt: S) -> Self | [src] |
pub fn add_terminal<S, TM>(&mut self, nt: S, tm: TM, ignoredup: bool) where | [src] |
pub fn terminal<S, TM>(self, nt: S, tm: TM) -> Self where | [src] |
pub fn add_rule<H, S>(&mut self, head: H, spec: &[S]) where | [src] |
pub fn rule<H, S>(self, head: H, spec: &[S]) -> Self where | [src] |
pub fn into_grammar<S>(self, start: S) -> Result<Grammar, Error> where | [src] |
pub fn unique_symbol_name(&self) -> String | [src] |
Trait Implementations
impl Default for GrammarBuilder
[src]
impl Default for GrammarBuilder
fn default() -> GrammarBuilder | [src] |
Auto Trait Implementations
impl !Send for GrammarBuilder
impl !Send for GrammarBuilder
impl !Sync for GrammarBuilder
impl !Sync for GrammarBuilder
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |