pub enum LibraryTab {
Views,
Templates,
}Expand description
Which registry the page is showing.
Variants§
Views
Saved views ([views.<id>], tix #172).
Templates
Issue/form templates ([issue_templates.<id>], tix #174).
Implementations§
Source§impl LibraryTab
impl LibraryTab
Sourcepub const fn noun(self) -> &'static str
pub const fn noun(self) -> &'static str
The noun for the list’s title and for “no X yet” sentences.
Sourcepub const fn empty_hint(self) -> &'static str
pub const fn empty_hint(self) -> &'static str
What an empty tab says, including how to stop being empty.
Kept here rather than in the app so the sentence is a property of the page a test can assert, not a string literal inside a render function.
Trait Implementations§
Source§impl Clone for LibraryTab
impl Clone for LibraryTab
impl Copy for LibraryTab
Source§impl Debug for LibraryTab
impl Debug for LibraryTab
Source§impl Default for LibraryTab
impl Default for LibraryTab
impl Eq for LibraryTab
Source§impl Hash for LibraryTab
impl Hash for LibraryTab
Source§impl PartialEq for LibraryTab
impl PartialEq for LibraryTab
impl StructuralPartialEq for LibraryTab
Auto Trait Implementations§
impl Freeze for LibraryTab
impl RefUnwindSafe for LibraryTab
impl Send for LibraryTab
impl Sync for LibraryTab
impl Unpin for LibraryTab
impl UnsafeUnpin for LibraryTab
impl UnwindSafe for LibraryTab
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.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