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§
Sourcefn push_sources(self, out: &mut Vec<ItemSource<K>>)
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".