Struct julia::api::Julia
[−]
[src]
pub struct Julia { /* fields omitted */ }
Struct for controlling the Julia runtime.
Methods
impl Julia
[src]
unsafe fn new_unchecked() -> Julia
[src]
Assume that Julia was already initialized somewhere else and return a handle.
This function is unsafe, because if any Julia operation is called, it will likely segfault. Also, the 4 jl_* modules might be null.
Panics
Panics if the Julia runtime was not previously initialized.
fn new() -> Result<Julia>
[src]
Initialize the Julia runtime.
Errors
Returns Error::JuliaInitialized if Julia is already initialized.
fn version(&self) -> Version
[src]
Returns the version of currently running Julia runtime.
fn gc(&self) -> &Gc
[src]
Returns a reference to the garbage collector.
fn is_initialized() -> bool
[src]
Checks if Julia was already initialized in the current thread.
fn exit(self, status: i32)
[src]
Sets own status to status and consumes Julia, causing the value to be dropped.
fn main(&self) -> &Module
[src]
Returns a handle to the main module.
fn core(&self) -> &Module
[src]
Returns a handle to the core module.
fn base(&self) -> &Module
[src]
Returns a handle to the base module.
fn top(&self) -> &Module
[src]
Returns a handle to the top module.
fn load<R: Read, S: IntoCString>(
&mut self,
r: &mut R,
name: Option<S>
) -> Result<Value>
[src]
&mut self,
r: &mut R,
name: Option<S>
) -> Result<Value>
Loads a Julia script from any Read without evaluating it.
fn eval_string<S: IntoCString>(&mut self, string: S) -> Result<Value>
[src]
Parses and evaluates string.