Struct ocaml::Array [−][src]
pub struct Array(_);
OCaml Array type
Methods
impl Array
[src]
impl Array
pub fn new(n: Size) -> Array
[src]
pub fn new(n: Size) -> Array
Create a new array of the given size
pub fn is_double_array(&self) -> bool
[src]
pub fn is_double_array(&self) -> bool
Check if Array contains only doubles
pub fn len(&self) -> Size
[src]
pub fn len(&self) -> Size
Array length
pub fn set_double(&mut self, i: Size, f: f64) -> Result<(), Error>
[src]
pub fn set_double(&mut self, i: Size, f: f64) -> Result<(), Error>
Set value to double array
pub fn get_double(&mut self, i: Size) -> Result<f64, Error>
[src]
pub fn get_double(&mut self, i: Size) -> Result<f64, Error>
Get a value from a double array
pub fn set(&mut self, i: Size, v: Value) -> Result<(), Error>
[src]
pub fn set(&mut self, i: Size, v: Value) -> Result<(), Error>
Set array index
pub fn get(&self, i: Size) -> Result<Value, Error>
[src]
pub fn get(&self, i: Size) -> Result<Value, Error>
Get array index
Trait Implementations
impl From<Array> for Value
[src]
impl From<Array> for Value
impl<R: AsRef<[Value]>> From<R> for Array
[src]
impl<R: AsRef<[Value]>> From<R> for Array
impl From<Value> for Array
[src]
impl From<Value> for Array