Struct ocaml::Array [−][src]
Array<A>
wraps an OCaml 'a array
without converting it to Rust
Implementations
impl<'a> Array<'a, f64>
[src]
impl<'a> Array<'a, f64>
[src]pub unsafe fn set_double_unchecked(&mut self, i: usize, f: f64)
[src]
pub unsafe fn set_double_unchecked(&mut self, i: usize, f: f64)
[src]pub unsafe fn get_double_unchecked(&self, i: usize) -> f64
[src]
pub unsafe fn get_double_unchecked(&self, i: usize) -> f64
[src]Get a value from a double array without checking if the array is actually a double array
Safety
This function does not perform bounds checking
impl<'a, T: IntoValue + FromValue<'a>> Array<'a, T>
[src]
impl<'a, T: IntoValue + FromValue<'a>> Array<'a, T>
[src]pub fn is_double_array(&self) -> bool
[src]
pub fn is_double_array(&self) -> bool
[src]Check if Array contains only doubles, if so get_double
and set_double
should be used
to access values
pub unsafe fn set_unchecked(&mut self, rt: &Runtime, i: usize, v: T)
[src]
pub unsafe fn set_unchecked(&mut self, rt: &Runtime, i: usize, v: T)
[src]pub unsafe fn get_unchecked(&'a self, i: usize) -> T
[src]
pub unsafe fn get_unchecked(&'a self, i: usize) -> T
[src]Trait Implementations
impl<'a, T: IntoValue + FromValue<'a>> FromValue<'a> for Array<'a, T>
[src]
impl<'a, T: IntoValue + FromValue<'a>> FromValue<'a> for Array<'a, T>
[src]fn from_value(value: Value) -> Self
[src]
fn from_value(value: Value) -> Self
[src]Convert from OCaml value
impl<'a, T: IntoValue + FromValue<'a>> IntoValue for Array<'a, T>
[src]
impl<'a, T: IntoValue + FromValue<'a>> IntoValue for Array<'a, T>
[src]fn into_value(self, _rt: &Runtime) -> Value
[src]
fn into_value(self, _rt: &Runtime) -> Value
[src]Convert to OCaml value
impl<'a, T: IntoValue + FromValue<'a>> StructuralPartialEq for Array<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Array<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> !Send for Array<'a, T>
impl<'a, T> !Sync for Array<'a, T>
impl<'a, T> Unpin for Array<'a, T>
impl<'a, T> UnwindSafe for Array<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more