#[non_exhaustive]pub enum SidebarCollapse {
Fixed,
Icons,
Hidden,
}Expand description
What a Sidebar does when it closes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fixed
It stays open; there is nothing to toggle.
Icons
It narrows to a rail of icons, with the labels as tooltips.
Hidden
It leaves the screen.
Trait Implementations§
Source§impl Clone for SidebarCollapse
impl Clone for SidebarCollapse
Source§fn clone(&self) -> SidebarCollapse
fn clone(&self) -> SidebarCollapse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SidebarCollapse
Source§impl Debug for SidebarCollapse
impl Debug for SidebarCollapse
Source§impl Default for SidebarCollapse
impl Default for SidebarCollapse
Source§fn default() -> SidebarCollapse
fn default() -> SidebarCollapse
Returns the “default value” for a type. Read more
impl Eq for SidebarCollapse
Source§impl PartialEq for SidebarCollapse
impl PartialEq for SidebarCollapse
impl StructuralPartialEq for SidebarCollapse
Auto Trait Implementations§
impl Freeze for SidebarCollapse
impl RefUnwindSafe for SidebarCollapse
impl Send for SidebarCollapse
impl Sync for SidebarCollapse
impl Unpin for SidebarCollapse
impl UnsafeUnpin for SidebarCollapse
impl UnwindSafe for SidebarCollapse
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
impl<T> Brush for T
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
Checks if this value is equivalent to the given key. Read more