pub struct Rush { /* private fields */ }
Implementations§
source§impl Rush
impl Rush
pub fn new() -> Self
pub fn register_rule<C: CalcNode + Send + Sync + 'static, E: Exec + Send + Sync + 'static, T: Into<String>>( self, name: T, nodes: Vec<C>, exec: E ) -> Self
pub fn delete_rule<T: AsRef<str>>(&mut self, name: T)
pub fn raw_register_function<S: Into<String>, F: Function>( self, name: S, function: F ) -> Self
pub fn register_function<S: Into<String>, Args, Out, F>( self, name: S, function: F ) -> Selfwhere F: HostFunction<Args, Out> + 'static, Out: Serialize,
pub fn delete_function<S: AsRef<str>>(self, name: S) -> Self
pub fn execute(&self, obj: &Value, list: Vec<String>) -> Result<Value>
Trait Implementations§
source§impl AsyncRuleFlow for Rush
impl AsyncRuleFlow for Rush
source§impl<C, E, I: IntoIterator<Item = (String, Vec<C>, E)>> From<I> for Rushwhere
C: CalcNode + 'static,
E: Exec + 'static,
impl<C, E, I: IntoIterator<Item = (String, Vec<C>, E)>> From<I> for Rushwhere C: CalcNode + 'static, E: Exec + 'static,
Auto Trait Implementations§
impl !RefUnwindSafe for Rush
impl Send for Rush
impl Sync for Rush
impl Unpin for Rush
impl !UnwindSafe for Rush
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