Struct jlrs::frame::StaticFrame[][src]

pub struct StaticFrame<'frame, U> where
    U: Mode
{ /* fields omitted */ }

A StaticFrame is a frame that has a definite number of slots on the GC stack. With some exceptions, creating new Values and calling them require one slot each. Rather than using new slots on the GC stack when a slot is needed, a StaticFrame uses the slots it acquired on creation. See the documentation in the value module for more information about the costs. You get access to a StaticFrame by calling Julia::frame or Frame::frame, most of their functionality is defined in the Frame trait.

Implementations

impl<'frame, M: Mode> StaticFrame<'frame, M>[src]

pub fn capacity(&self) -> usize[src]

Returns the total number of slots.

Trait Implementations

impl<'frame, U> Drop for StaticFrame<'frame, U> where
    U: Mode
[src]

impl<'frame, M: Mode> Frame<'frame> for StaticFrame<'frame, M>[src]

Auto Trait Implementations

impl<'frame, U> RefUnwindSafe for StaticFrame<'frame, U> where
    U: RefUnwindSafe

impl<'frame, U> !Send for StaticFrame<'frame, U>

impl<'frame, U> !Sync for StaticFrame<'frame, U>

impl<'frame, U> Unpin for StaticFrame<'frame, U> where
    U: Unpin

impl<'frame, U> !UnwindSafe for StaticFrame<'frame, U>

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<'frame, T> Gc for T where
    T: Frame<'frame>, 
[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.