Skip to main content

IndexNavigable

Trait IndexNavigable 

Source
pub trait IndexNavigable<K, V>
where Self: Sized,
{ // Required method fn index_keypath_segment(index: K) -> KeyPath<Self, V>; }
Expand description

Trait for types that can be indexed with key paths

Required Methods§

Source

fn index_keypath_segment(index: K) -> KeyPath<Self, V>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<K: Display, V> IndexNavigable<K, V> for BTreeMap<K, V>

Source§

fn index_keypath_segment(index: K) -> KeyPath<Self, V>

Source§

impl<K: Display, V> IndexNavigable<K, V> for HashMap<K, V>

Source§

fn index_keypath_segment(index: K) -> KeyPath<Self, V>

Source§

impl<T> IndexNavigable<usize, T> for Vec<T>

Implementors§