#[non_exhaustive]pub enum SidebarFrame {
Ruled,
Inset,
Floating,
}Expand description
How the sidebar sits beside the page, which a Brand picks with Brand::sidebar over its
Theme’s.
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.
Ruled
Flush with the window’s edge, a rule between it and the page: Amber’s, Graphite’s and Ledger’s.
Inset
The page a sheet inset in the sidebar’s color, the sidebar its frame: Jade’s.
Floating
A card floating beside the page, clear of the window’s edge: Iris’s.
Implementations§
Source§impl SidebarFrame
impl SidebarFrame
Sourcepub fn current(cx: &Cx) -> Option<Self>
pub fn current(cx: &Cx) -> Option<Self>
The frame the request’s page wears, as Theme::current reads the theme; None outside
every panel.
Trait Implementations§
Source§impl Clone for SidebarFrame
impl Clone for SidebarFrame
impl Copy for SidebarFrame
Source§impl Debug for SidebarFrame
impl Debug for SidebarFrame
impl Eq for SidebarFrame
Source§impl PartialEq for SidebarFrame
impl PartialEq for SidebarFrame
impl StructuralPartialEq for SidebarFrame
Auto Trait Implementations§
impl Freeze for SidebarFrame
impl RefUnwindSafe for SidebarFrame
impl Send for SidebarFrame
impl Sync for SidebarFrame
impl Unpin for SidebarFrame
impl UnsafeUnpin for SidebarFrame
impl UnwindSafe for SidebarFrame
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.