Skip to main content

StaticArenas

Struct StaticArenas 

Source
pub struct StaticArenas<'a, V> {
    pub values: &'a mut [Option<V>],
    pub terminals: &'a mut [Option<V>],
    pub output_scratch: &'a mut [V],
    pub invocation: &'a [Option<V>],
}
Expand description

Caller-owned execution arenas for StaticExecutor::execute. Firmware provisions each slice once from McuArenaRequirements; the executor grows none of them.

Fields§

§values: &'a mut [Option<V>]

One live-buffer slot per plan buffer (value_slots).

§terminals: &'a mut [Option<V>]

Collected unconnected outputs (terminal_slots).

§output_scratch: &'a mut [V]

Per-step output workspace, reused each step (max_step_outputs).

§invocation: &'a [Option<V>]

One value per invocation port (invocation_slots).

Auto Trait Implementations§

§

impl<'a, V> !UnwindSafe for StaticArenas<'a, V>

§

impl<'a, V> Freeze for StaticArenas<'a, V>
where &'a mut [Option<V>]: Freeze, &'a mut [V]: Freeze, &'a [Option<V>]: Freeze,

§

impl<'a, V> RefUnwindSafe for StaticArenas<'a, V>
where &'a mut [Option<V>]: RefUnwindSafe, &'a mut [V]: RefUnwindSafe, &'a [Option<V>]: RefUnwindSafe,

§

impl<'a, V> Send for StaticArenas<'a, V>
where &'a mut [Option<V>]: Send, &'a mut [V]: Send, &'a [Option<V>]: Send,

§

impl<'a, V> Sync for StaticArenas<'a, V>
where &'a mut [Option<V>]: Sync, &'a mut [V]: Sync, &'a [Option<V>]: Sync,

§

impl<'a, V> Unpin for StaticArenas<'a, V>
where &'a mut [Option<V>]: Unpin, &'a mut [V]: Unpin, &'a [Option<V>]: Unpin,

§

impl<'a, V> UnsafeUnpin for StaticArenas<'a, V>
where &'a mut [Option<V>]: UnsafeUnpin, &'a mut [V]: UnsafeUnpin, &'a [Option<V>]: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.