pub struct Nav { /* private fields */ }Implementations§
pub fn new(groups: Vec<Group>) -> Self
pub fn keys(self, keys: NavKeys) -> Self
pub fn groups(&self) -> &[Group]
pub fn place(&self) -> Place
pub fn selected(&self, group: usize) -> Option<usize>
pub fn section(&self) -> Option<&Section>
pub fn section_mut( &mut self, group: usize, section: usize, ) -> Option<&mut Section>
pub fn count(&self) -> usize
pub fn go(&mut self, number: usize) -> Option<Place>
pub fn go_to(&mut self, group: usize, section: usize) -> Option<Place>
pub fn cycle(&mut self, by: isize) -> Option<Place>
pub fn step(&mut self, by: isize) -> Option<Place>
pub fn open(&mut self, title: impl Into<Cow<'static, str>>, selected: usize)
pub fn back(&mut self) -> Option<usize>
pub fn close(&mut self) -> Option<usize>
pub fn depth(&self) -> usize
pub fn title(&self) -> Option<&str>
pub fn crumbs(&self) -> impl Iterator<Item = &str>
pub fn action(&self, key: Key) -> Option<Action>
pub fn apply(&mut self, action: Action) -> Option<Step>
pub fn key(&mut self, key: Key) -> Option<Step>
pub fn bar(&self) -> NavBar<'_>
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more