pub struct Slidebar { /* private fields */ }Implementations§
Source§impl Slidebar
impl Slidebar
pub fn new(title: impl AsRef<str>, config: Config) -> Self
pub fn with_title(self, title: &str) -> Self
pub fn set_title(&mut self, title: &str) -> &mut Self
pub fn title(&self) -> &str
pub fn with_message(self, message: &str) -> Self
pub fn set_message(&mut self, message: &str) -> &mut Self
pub fn message(&self) -> Option<&str>
pub fn with_style(self, style: Style) -> Self
pub fn style(&self) -> &Style
pub fn with_key_bindings(self, key_bindings: KeyBindingMap) -> Self
pub fn key_bindings(&self) -> &KeyBindingMap
pub fn ui_size(&self) -> Coord
pub fn logical_size(&self) -> Coord
pub fn ui_current(&self) -> Coord
pub fn logical_current(&self) -> Coord
pub fn set_ui_size(&mut self, value: Coord)
pub fn set_ui_current(&mut self, value: Coord)
pub fn run_command<F>( &mut self, app: &mut App, cmd: Command, on_change: F, ) -> Result<bool, Error>
pub async fn run<F>(&mut self, app: &mut App, on_change: F) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slidebar
impl RefUnwindSafe for Slidebar
impl Send for Slidebar
impl Sync for Slidebar
impl Unpin for Slidebar
impl UnsafeUnpin for Slidebar
impl UnwindSafe for Slidebar
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