rune::modules::slice

Function module

Source
pub fn module() -> Result<Module, ContextError>
Expand description

Types related to working with contiguous slices.

ยงExamples

let it = [10, 20].iter();

assert_eq!(it.next(), Some(10));
assert_eq!(it.next(), Some(20));
assert_eq!(it.next(), None);