[][src]Struct clips::Environment

pub struct Environment { /* fields omitted */ }

Methods

impl Environment[src]

pub fn from_ptr(raw: *mut Environment) -> Self[src]

pub fn clear(&mut self) -> Result<(), ClipsError>[src]

pub fn load_from_str(&mut self, string: &str) -> Result<(), ClipsError>[src]

pub fn load(&mut self, path: &Path) -> Result<(), ClipsError>[src]

pub fn reset(&mut self)[src]

pub fn run(&mut self, limit: i64) -> i64[src]

pub fn instances_iter(&self) -> impl Iterator<Item = Instance>[src]

pub fn command_loop(&mut self)[src]

pub fn route_command(&mut self, command: &str)[src]

pub fn add_udf(
    &mut self,
    name: &str,
    return_types: Option<Type>,
    min_args: u16,
    max_args: u16,
    arg_types: Vec<Type>,
    function: &dyn FnMut(&mut Self, &mut UDFContext) -> ClipsValue<'static>
) -> Result<(), ClipsError>
[src]

pub fn remove_udf(&mut self, name: &str) -> Result<(), ClipsError>[src]

pub fn save_instances(&mut self, filename: &str, scope: SaveScope) -> i64[src]

pub fn batch_star(&mut self, filename: &str) -> Result<(), ClipsError>[src]

Trait Implementations

impl Debug for Environment[src]

impl Drop for Environment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.