Skip to main content

MiraArrayHandle

Type Alias MiraArrayHandle 

Source
pub type MiraArrayHandle = MiraHandle<dyn MiraArray>;
Expand description

A handle to a MiraScript array value.

Aliased Type§

pub struct MiraArrayHandle { /* private fields */ }

Implementations§

Source§

impl MiraArrayHandle

Source

pub fn len(self, runtime: &Runtime) -> Result<usize>

Return the number of elements in the array.

Source

pub fn get(self, runtime: &mut Runtime, index: usize) -> Result<MiraValue>

Read one element by index of the array.