[−][src]Struct jlrs::frame::DynamicFrame
A DynamicFrame
is a frame that has a dynamic number of slots on the GC stack. With some
exceptions, creating new Value
s and calling them require one slot each. A DynamicFrame
acquires a new slot every time one is needed. See the documentation in the value
module
for more information about the costs. You get access to a DynamicFrame
by calling
Julia::dynamic_frame
or Frame::dynamic_frame
, most of
their functionality is defined in the Frame
trait.
Trait Implementations
impl<'frame, U> Drop for DynamicFrame<'frame, U> where
U: Mode,
[src]
U: Mode,
impl<'frame, M: Mode> Frame<'frame> for DynamicFrame<'frame, M>
[src]
pub fn dynamic_frame<'nested, T, F: FnOnce(&mut DynamicFrame<'nested, M>) -> JlrsResult<T>>(
&'nested mut self,
func: F
) -> JlrsResult<T>
[src]
&'nested mut self,
func: F
) -> JlrsResult<T>
pub fn frame<'nested, T, F: FnOnce(&mut StaticFrame<'nested, M>) -> JlrsResult<T>>(
&'nested mut self,
capacity: usize,
func: F
) -> JlrsResult<T>
[src]
&'nested mut self,
capacity: usize,
func: F
) -> JlrsResult<T>
pub fn output(&mut self) -> JlrsResult<Output<'frame>>
[src]
pub fn size(&self) -> usize
[src]
pub fn print_memory(&self)
[src]
pub fn global(&self) -> Global<'frame>
[src]
Auto Trait Implementations
impl<'frame, U> RefUnwindSafe for DynamicFrame<'frame, U> where
U: RefUnwindSafe,
[src]
U: RefUnwindSafe,
impl<'frame, U> !Send for DynamicFrame<'frame, U>
[src]
impl<'frame, U> !Sync for DynamicFrame<'frame, U>
[src]
impl<'frame, U> Unpin for DynamicFrame<'frame, U> where
U: Unpin,
[src]
U: Unpin,
impl<'frame, U> !UnwindSafe for DynamicFrame<'frame, U>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<'frame, T> Gc for T where
T: Frame<'frame>,
[src]
T: Frame<'frame>,
pub unsafe fn enable_gc(&mut self, on: bool) -> bool
[src]
pub fn gc_is_enabled(&mut self) -> bool
[src]
pub unsafe fn gc_collect(&mut self, mode: GcCollection)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,