pub struct Note { /* private fields */ }Expand description
A non-interactive note/text display field.
Implementations§
Source§impl Note
impl Note
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sets the description (body text).
Sourcepub fn next_label(self, label: impl Into<String>) -> Self
pub fn next_label(self, label: impl Into<String>) -> Self
Sets the next button label.
Trait Implementations§
Source§impl Field for Note
impl Field for Note
Source§fn with_theme(&mut self, theme: &Theme)
fn with_theme(&mut self, theme: &Theme)
Sets the theme.
Source§fn with_keymap(&mut self, keymap: &KeyMap)
fn with_keymap(&mut self, keymap: &KeyMap)
Sets the keymap.
Source§fn with_width(&mut self, width: usize)
fn with_width(&mut self, width: usize)
Sets the width.
Source§fn with_height(&mut self, _height: usize)
fn with_height(&mut self, _height: usize)
Sets the height.
Source§fn with_position(&mut self, position: FieldPosition)
fn with_position(&mut self, position: FieldPosition)
Sets the field position.
Auto Trait Implementations§
impl Freeze for Note
impl !RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl !UnwindSafe for Note
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