ContainerIndex

Trait ContainerIndex 

Source
pub trait ContainerIndex<T, Idx>: Container<T>
where Self::Cont<T>: RawSpace<Elem = T> + Index<Idx, Output = T>,
{ type Output; // Required method fn get(&self, index: Idx) -> Option<&Self::Output>; }

Required Associated Types§

Required Methods§

Source

fn get(&self, index: Idx) -> Option<&Self::Output>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§