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: 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>> NavContent<K> for (A, B, C, D, E, F, G, H, I, J, L, N)

Source§

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

Source§

impl<K, 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>> NavContent<K> for (A, B, C, D, E, F, G, H, I, J, L)

Source§

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

Source§

impl<K, 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>> NavContent<K> for (A, B, C, D, E, F, G, H, I, J)

Source§

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

Source§

impl<K, 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>> NavContent<K> for (A, B, C, D, E, F, G, H, I)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

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: 'static> NavContent<K> for NavItems<K>

Source§

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

Day API ↩ Guides· daybrite.dev