pub struct RuleBuilder { /* private fields */ }
Implementations§
Source§impl RuleBuilder
impl RuleBuilder
pub fn new<C>(command_builder: C) -> RuleBuilderwhere
C: Into<CommandBuilder>,
pub fn build(&self) -> Result<Rule, Vec<RuleBuilderError>>
pub fn generator(self, generator: bool) -> RuleBuilder
pub fn variable<Id, Var>(self, id: Id, var: Var) -> RuleBuilder
Trait Implementations§
Source§impl From<Rule> for RuleBuilder
impl From<Rule> for RuleBuilder
Source§fn from(value: Rule) -> RuleBuilder
fn from(value: Rule) -> RuleBuilder
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RuleBuilder
impl RefUnwindSafe for RuleBuilder
impl Send for RuleBuilder
impl Sync for RuleBuilder
impl Unpin for RuleBuilder
impl UnwindSafe for RuleBuilder
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