Struct julia::api::array::Svec
[−]
[src]
pub struct Svec { /* fields omitted */ }
Methods
impl Svec
[src]
fn len(&self) -> Result<usize>
[src]
Returns the length of the Svec.
fn is_empty(&self) -> bool
[src]
Checks if the Svec is empty.
fn as_vec(&self) -> Result<Vec<Value>>
[src]
Constructs a Vec of Values from the Svec.
fn index(&self, idx: usize) -> Result<Value>
[src]
Returns the value at a specified index.
fn index_set(&self, idx: usize, x: &Value) -> Result<()>
[src]
Sets the value at a specified index.
Trait Implementations
impl Clone for Svec
[src]
fn clone(&self) -> Svec
[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_svec_t> for Svec
[src]
unsafe fn new_unchecked(_inner: *mut jl_svec_t) -> Svec
[src]
Construct a new JlValue from a raw pointer obtained from Julia.
fn new(_inner: *mut jl_svec_t) -> Result<Svec>
[src]
Construct a new JlValue from a raw pointer obtained from Julia while previously validating it. Read more
fn lock(&self) -> Result<*mut jl_svec_t>
[src]
Safely borrow the unique pointer to a inner jl_value. Read more
fn into_inner(self) -> Result<*mut jl_svec_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