pub struct DriverBuilder { /* private fields */ }
Implementations§
Source§impl DriverBuilder
impl DriverBuilder
pub fn new(name: &str) -> Self
pub fn state(&mut self, name: &str, extensions: &[&str]) -> StateRef
pub fn add_setup<T: EmitSetup + 'static>( &mut self, name: &str, emit: T, ) -> SetupRef
pub fn setup(&mut self, name: &str, func: EmitSetupFn) -> SetupRef
pub fn op( &mut self, name: &str, setups: &[SetupRef], input: StateRef, output: StateRef, build: EmitBuildFn, ) -> OpRef
pub fn rule( &mut self, setups: &[SetupRef], input: StateRef, output: StateRef, rule_name: &str, ) -> OpRef
pub fn build(self) -> Driver
Auto Trait Implementations§
impl Freeze for DriverBuilder
impl !RefUnwindSafe for DriverBuilder
impl !Send for DriverBuilder
impl !Sync for DriverBuilder
impl Unpin for DriverBuilder
impl !UnwindSafe for DriverBuilder
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