Trait SliceExt

Source
pub trait SliceExt<T> {
    // Required methods
    unsafe fn boom_get(&self, index: usize) -> &T;
    unsafe fn boom_get_mut(&mut self, index: usize) -> &mut T;
}
Expand description

boom extensions to [T].

Required Methods§

Source

unsafe fn boom_get(&self, index: usize) -> &T

boom variant of get.

Source

unsafe fn boom_get_mut(&mut self, index: usize) -> &mut T

boom variant of get_mut.

Implementations on Foreign Types§

Source§

impl<T> SliceExt<T> for [T]

Source§

unsafe fn boom_get(&self, index: usize) -> &T

Source§

unsafe fn boom_get_mut(&mut self, index: usize) -> &mut T

Implementors§