Struct julia::api::module::Module
[−]
[src]
pub struct Module { /* fields omitted */ }
Methods
impl Module
[src]
fn global<S: IntoSymbol>(&self, sym: S) -> Result<Value>
[src]
Returns a global bound to the symbol sym
.
fn function<S: IntoSymbol>(&self, sym: S) -> Result<Function>
[src]
Returns a function bound to the symbol sym
.
fn set<S: IntoSymbol>(&self, sym: S, value: &Value) -> Result<()>
[src]
Binds value
to the symbol sym
in this module.
fn set_const<S: IntoSymbol>(&self, sym: S, value: &Value) -> Result<()>
[src]
Binds value
to the symbol sym
in this module as a constant.
Trait Implementations
impl Clone for Module
[src]
fn clone(&self) -> Module
[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_module_t> for Module
[src]
unsafe fn new_unchecked(_inner: *mut jl_module_t) -> Module
[src]
Construct a new JlValue from a raw pointer obtained from Julia.
fn new(_inner: *mut jl_module_t) -> Result<Module>
[src]
Construct a new JlValue from a raw pointer obtained from Julia while previously validating it. Read more
fn lock(&self) -> Result<*mut jl_module_t>
[src]
Safely borrow the unique pointer to a inner jl_value. Read more
fn into_inner(self) -> Result<*mut jl_module_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