Struct julia::api::function::Function
[−]
[src]
pub struct Function { /* fields omitted */ }
Methods
impl Function
[src]
fn call<'a, I>(&self, args: I) -> Result<Value> where
I: IntoIterator<Item = &'a Value>,
[src]
I: IntoIterator<Item = &'a Value>,
Call with a sequence of Value-s.
fn call0(&self) -> Result<Value>
[src]
Call with 0 Value-s.
fn call1(&self, arg1: &Value) -> Result<Value>
[src]
Call with 1 Value.
fn call2(&self, arg1: &Value, arg2: &Value) -> Result<Value>
[src]
Call with 2 Value-s.
fn call3(&self, arg1: &Value, arg2: &Value, arg3: &Value) -> Result<Value>
[src]
Call with 3 Value-s.
Trait Implementations
impl Clone for Function
[src]
fn clone(&self) -> Function
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl JlValue<jl_function_t> for Function
[src]
unsafe fn new_unchecked(_inner: *mut jl_function_t) -> Function
[src]
Construct a new JlValue from a raw pointer obtained from Julia.
fn new(_inner: *mut jl_function_t) -> Result<Function>
[src]
Construct a new JlValue from a raw pointer obtained from Julia while previously validating it. Read more
fn lock(&self) -> Result<*mut jl_function_t>
[src]
Safely borrow the unique pointer to a inner jl_value. Read more
fn into_inner(self) -> Result<*mut jl_function_t>
[src]
Take ownership of the inner jl_value. Read more
fn add_finalizer(&self, f: &Function) -> Result<()>
[src]
Add a finalizer, a function that will be run when the object is collected. Read more
fn finalize(self) -> Result<()>
[src]
Consume and finalize self.
fn typename(&self) -> Result<String>
[src]
Returns the name of the type.
fn datatype(&self) -> Result<Datatype>
[src]
Returns the type of the object as a Datatype.
fn get<S: IntoSymbol>(&self, field: S) -> Result<Value>
[src]
Returns the value of a field if it exists.
fn set<S: IntoSymbol>(&self, field: S, value: &Value) -> Result<()>
[src]
Sets the value of a field if it exists.
fn from_value<U, A: JlValue<U>>(val: A) -> Result<Self>
[src]
Constructs an object of type Self from another object that implements JlValue. Read more
fn into_value<U, A: JlValue<U>>(self) -> Result<A>
[src]
Consumes self and returns an object of another type with the same inner pointer. Read more