Struct yksom::vm::objects::NormalArray[][src]

pub struct NormalArray { /* fields omitted */ }

Implementations

impl NormalArray[src]

pub fn new(vm: &VM, len: usize) -> Val[src]

pub fn from_vec(v: Vec<Val>) -> Val[src]

pub unsafe fn alloc<F>(len: usize, init: F) -> Val where
    F: FnOnce(*mut Val), 
[src]

Create a new NormalArray with a backing store of len elements. init will be called with a pointer to the uninitialised backing store. After init completes, the backing store will be considered fully initialised: failure to fully initialise it causes undefined behaviour.

Trait Implementations

impl Array for NormalArray[src]

impl Debug for NormalArray[src]

impl !NoTrace for NormalArray[src]

impl NotUnboxable for NormalArray[src]

impl Obj for NormalArray[src]

impl StaticObjType for NormalArray[src]

Auto Trait Implementations

impl RefUnwindSafe for NormalArray

impl Send for NormalArray

impl Sync for NormalArray

impl Unpin for NormalArray

impl UnwindSafe for NormalArray

Blanket Implementations

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

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

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

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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