Trait handlegraph::packed::traits::Viewable [−][src]
A Viewable
is a PackedCollection
that we can get a "view" into
a single element of. This lets us get a "reference" to a specific
element in a packed collection.
The view converts element values from their packed
representation automatically, using the PackedCollection
trait.
Required methods
fn view<T>(&self, index: usize) -> ViewRef<'_, Self, T> where
T: PackedElement,
[src]
T: PackedElement,
Get a ViewRef
for at the provided index on this collection.
Provided methods
fn get_unpack<T>(&self, index: usize) -> T where
T: PackedElement,
[src]
T: PackedElement,
Get the element at index
and unpack it.
Implementors
impl<V> Viewable for V where
V: PackedCollection + Sized,
[src]
V: PackedCollection + Sized,
fn view<T>(&self, index: usize) -> ViewRef<'_, Self, T> where
T: PackedElement,
[src]
T: PackedElement,