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
Auto Trait Implementations§
impl Freeze for Rush
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