pub struct FunctionCall<'env> { /* private fields */ }Expand description
Calls a CLIPS function with typed arguments.
Arguments are passed as real CLIPS values rather than as expression text,
so nothing has to be formatted, escaped, or re-parsed. This is also how
message sends are built, since CLIPS’s own Send only accepts argument
text.
Implementations§
Source§impl<'env> FunctionCall<'env>
impl<'env> FunctionCall<'env>
Sourcepub fn instance_name(&mut self, value: &str) -> Result<&mut Self>
pub fn instance_name(&mut self, value: &str) -> Result<&mut Self>
Appends an instance-name argument.
Sourcepub fn instance(&mut self, value: &Instance<'env>) -> &mut Self
pub fn instance(&mut self, value: &Instance<'env>) -> &mut Self
Appends an instance address as an argument.
Sourcepub fn multifield(&mut self, value: &Multifield<'env>) -> &mut Self
pub fn multifield(&mut self, value: &Multifield<'env>) -> &mut Self
Appends a multifield argument.
Sourcepub fn value(&mut self, value: &Value<'env>) -> Result<&mut Self>
pub fn value(&mut self, value: &Value<'env>) -> Result<&mut Self>
Appends an already existing CLIPS value.
Fails with Error::ForeignEnvironment if value belongs to another
environment, since CLIPS atoms are interned per environment.
Trait Implementations§
Source§impl Drop for FunctionCall<'_>
impl Drop for FunctionCall<'_>
Auto Trait Implementations§
impl<'env> !RefUnwindSafe for FunctionCall<'env>
impl<'env> !Send for FunctionCall<'env>
impl<'env> !Sync for FunctionCall<'env>
impl<'env> !UnwindSafe for FunctionCall<'env>
impl<'env> Freeze for FunctionCall<'env>
impl<'env> Unpin for FunctionCall<'env>
impl<'env> UnsafeUnpin for FunctionCall<'env>
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