[][src]Struct ocaml::Array1

pub struct Array1<T>(_, _);

OCaml Bigarray.Array1 type

Methods

impl<T: BigarrayKind> Array1<T>[src]

pub fn of_slice(data: &mut [T]) -> Array1<T>[src]

pub fn create(n: Size) -> Array1<T>[src]

pub fn len(&self) -> Size[src]

pub fn is_empty(&self) -> bool[src]

pub fn data(&self) -> &[T][src]

pub fn data_mut(&mut self) -> &mut [T][src]

Trait Implementations

impl<T: BigarrayKind> From<Array1<T>> for Value[src]

impl<T: BigarrayKind> From<Value> for Array1<T>[src]

Auto Trait Implementations

impl<T> Send for Array1<T> where
    T: Send

impl<T> Sync for Array1<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]