pub struct Machine {
pub contexts: Vec<MachineContext>,
pub nodes: Vec<Node>,
}Fields§
§contexts: Vec<MachineContext>§nodes: Vec<Node>Implementations§
Source§impl Machine
impl Machine
pub fn new() -> Machine
pub fn new_any_of<I>(machines: I) -> Machinewhere
I: IntoIterator<Item = Machine>,
pub fn inject_node(&mut self, node: Node) -> usize
pub fn register_dynamic( &mut self, from: usize, check: Check, to: usize, reducer: Reducer, )
pub fn register_shortcut(&mut self, from: usize, to: usize, reducer: Reducer)
pub fn register_static( &mut self, from: usize, key: Arg, to: usize, reducer: Reducer, )
pub fn simplify_machine(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Machine
impl RefUnwindSafe for Machine
impl Send for Machine
impl Sync for Machine
impl Unpin for Machine
impl UnwindSafe for Machine
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