[][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> ToValue for Array1<T>[src]

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> Unpin for Array1<T> where
    T: Unpin

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

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

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

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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