Struct jlrs::value::simple_vector::SimpleVector[][src]

#[repr(transparent)]pub struct SimpleVector<'frame>(_, _);

A SimpleVector is a fixed-size array that contains Values.

Implementations

impl<'frame> SimpleVector<'frame>[src]

pub fn with_capacity<F>(frame: &mut F, n: usize) -> JlrsResult<Self> where
    F: Frame<'frame>, 
[src]

Create a new SimpleVector that can hold n values.

pub unsafe fn with_capacity_uninit<F>(
    frame: &mut F,
    n: usize
) -> JlrsResult<Self> where
    F: Frame<'frame>, 
[src]

Create a new SimpleVector that can hold n values without initializing its contents. The contents must be set before calling Julia again.

pub fn len(self) -> usize[src]

Returns the length of this SimpleVector.

pub fn data(self) -> &'frame [Value<'frame, 'static>][src]

Returns the data of this SimpleVector.

pub unsafe fn set<'data>(
    self,
    index: usize,
    value: Value<'_, 'data>
) -> JlrsResult<Value<'frame, 'data>>
[src]

pub fn as_value(self) -> Value<'frame, 'static>[src]

Convert self to a Value.

impl<'base> SimpleVector<'base>[src]

pub fn emptysvec(_: Global<'base>) -> Self[src]

Trait Implementations

impl<'frame, 'data> Cast<'frame, 'data> for SimpleVector<'frame>[src]

type Output = Self

impl<'frame> Clone for SimpleVector<'frame>[src]

impl<'frame> Copy for SimpleVector<'frame>[src]

impl<'scope> Debug for SimpleVector<'scope>[src]

impl<'frame> Eq for SimpleVector<'frame>[src]

impl<'frame> Hash for SimpleVector<'frame>[src]

impl<'frame> Into<Value<'frame, 'static>> for SimpleVector<'frame>[src]

impl<'frame> JuliaType for SimpleVector<'frame>[src]

impl<'frame> JuliaTypecheck for SimpleVector<'frame>[src]

impl<'frame> PartialEq<SimpleVector<'frame>> for SimpleVector<'frame>[src]

impl<'frame> StructuralEq for SimpleVector<'frame>[src]

impl<'frame> StructuralPartialEq for SimpleVector<'frame>[src]

impl<'frame> ValidLayout for SimpleVector<'frame>[src]

Auto Trait Implementations

impl<'frame> RefUnwindSafe for SimpleVector<'frame>

impl<'frame> !Send for SimpleVector<'frame>

impl<'frame> !Sync for SimpleVector<'frame>

impl<'frame> Unpin for SimpleVector<'frame>

impl<'frame> UnwindSafe for SimpleVector<'frame>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.