pub struct RuleBuilder<Q, S> { /* private fields */ }
Implementations§
Source§impl<Q, S> RuleBuilder<Q, S>where
Q: RawState,
impl<Q, S> RuleBuilder<Q, S>where
Q: RawState,
pub fn new() -> Self
pub fn direction(self, direction: Direction) -> Self
pub fn left(self) -> Self
pub fn state(self, state: State<Q>) -> Self
pub fn symbol(self, symbol: S) -> Self
pub fn next_state(self, State: State<Q>) -> Self
pub fn write_symbol(self, write_symbol: S) -> Self
pub fn build(self) -> Rule<Q, S>
Trait Implementations§
Source§impl<Q: Default, S: Default> Default for RuleBuilder<Q, S>
impl<Q: Default, S: Default> Default for RuleBuilder<Q, S>
Source§fn default() -> RuleBuilder<Q, S>
fn default() -> RuleBuilder<Q, S>
Returns the “default value” for a type. Read more
Source§impl<Q, S> From<RuleBuilder<Q, S>> for Rule<Q, S>where
Q: RawState,
impl<Q, S> From<RuleBuilder<Q, S>> for Rule<Q, S>where
Q: RawState,
Source§fn from(builder: RuleBuilder<Q, S>) -> Self
fn from(builder: RuleBuilder<Q, S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Q, S> Freeze for RuleBuilder<Q, S>
impl<Q, S> RefUnwindSafe for RuleBuilder<Q, S>where
S: RefUnwindSafe,
Q: RefUnwindSafe,
impl<Q, S> Send for RuleBuilder<Q, S>
impl<Q, S> Sync for RuleBuilder<Q, S>
impl<Q, S> Unpin for RuleBuilder<Q, S>
impl<Q, S> UnwindSafe for RuleBuilder<Q, S>where
S: UnwindSafe,
Q: UnwindSafe,
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