pub struct ResponsiveSidebarState { /* private fields */ }Expand description
Cloneable application-owned state for a responsive sidebar.
Implementations§
Source§impl ResponsiveSidebarState
impl ResponsiveSidebarState
pub fn new() -> Self
pub fn snapshot(&self) -> ResponsiveSidebarSnapshot
pub fn apply_snapshot(&self, snapshot: ResponsiveSidebarSnapshot) -> bool
pub fn set_expanded(&self, expanded: bool) -> bool
pub fn toggle_expanded(&self) -> bool
pub fn open_overlay(&self) -> bool
pub fn close_overlay(&self) -> bool
pub fn toggle_overlay(&self) -> bool
Trait Implementations§
Source§impl Clone for ResponsiveSidebarState
impl Clone for ResponsiveSidebarState
Source§impl Debug for ResponsiveSidebarState
impl Debug for ResponsiveSidebarState
Auto Trait Implementations§
impl Forget for ResponsiveSidebarState
impl Freeze for ResponsiveSidebarState
impl Move for ResponsiveSidebarState
impl RefUnwindSafe for ResponsiveSidebarState
impl Send for ResponsiveSidebarState
impl Sync for ResponsiveSidebarState
impl Unpin for ResponsiveSidebarState
impl UnsafeUnpin for ResponsiveSidebarState
impl UnwindSafe for ResponsiveSidebarState
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