pub struct NavEntry {
pub href: String,
pub label: String,
}Expand description
One page in the site navigation bar: where it goes and what it is called.
Built by the caller from the authored site pages (rto_spec::site_nav puts
them in order), and passed to render_site_page whole so every page emits
the same bar. A per-page bar assembled independently is a bar that can
disagree with itself, which is how a page ends up unreachable from its
neighbours.
Fields§
§href: StringRoot-relative href (e.g. modes.html, or ./ for the landing page).
label: StringShort label shown in the bar.
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.