Skip to main content

NavContent

Trait NavContent 

Source
pub trait NavContent<K> {
    // Required method
    fn push_sources(self, out: &mut Vec<ItemSource<K>>);
}
Expand description

What a Nav::items or Nav::section block takes: one NavItem, a tuple of them, an Option (an item the platform may not want: prefs.nav_item(key)), a Vec or array, or a data-driven nav_items block. Any mix nests: (item(..), nav_items(..), Some(item(..))).

Required Methods§

Source

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Append this content’s sources, in order.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<K, A, B, C, D, E, F, G, H, I, J, L, N> NavContent<K> for (A, B, C, D, E, F, G, H, I, J, L, N)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>, E: NavContent<K>, F: NavContent<K>, G: NavContent<K>, H: NavContent<K>, I: NavContent<K>, J: NavContent<K>, L: NavContent<K>, N: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C, D, E, F, G, H, I, J, L> NavContent<K> for (A, B, C, D, E, F, G, H, I, J, L)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>, E: NavContent<K>, F: NavContent<K>, G: NavContent<K>, H: NavContent<K>, I: NavContent<K>, J: NavContent<K>, L: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C, D, E, F, G, H, I, J> NavContent<K> for (A, B, C, D, E, F, G, H, I, J)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>, E: NavContent<K>, F: NavContent<K>, G: NavContent<K>, H: NavContent<K>, I: NavContent<K>, J: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C, D, E, F, G, H, I> NavContent<K> for (A, B, C, D, E, F, G, H, I)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>, E: NavContent<K>, F: NavContent<K>, G: NavContent<K>, H: NavContent<K>, I: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C, D, E, F, G, H> NavContent<K> for (A, B, C, D, E, F, G, H)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>, E: NavContent<K>, F: NavContent<K>, G: NavContent<K>, H: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C, D, E, F, G> NavContent<K> for (A, B, C, D, E, F, G)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>, E: NavContent<K>, F: NavContent<K>, G: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C, D, E, F> NavContent<K> for (A, B, C, D, E, F)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>, E: NavContent<K>, F: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C, D, E> NavContent<K> for (A, B, C, D, E)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>, E: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C, D> NavContent<K> for (A, B, C, D)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>, D: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B, C> NavContent<K> for (A, B, C)
where A: NavContent<K>, B: NavContent<K>, C: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A, B> NavContent<K> for (A, B)
where A: NavContent<K>, B: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, A> NavContent<K> for (A,)
where A: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, C, const N: usize> NavContent<K> for [C; N]
where C: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, C> NavContent<K> for Option<C>
where C: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K, C> NavContent<K> for Vec<C>
where C: NavContent<K>,

Source§

fn push_sources(self, out: &mut Vec<ItemSource<K>>)

Source§

impl<K> NavContent<K> for ()

Source§

fn push_sources(self, _out: &mut Vec<ItemSource<K>>)

Implementors§

Source§

impl<K> NavContent<K> for NavItem<K>

Source§

impl<K> NavContent<K> for NavItems<K>
where K: 'static,