pub struct SelectDialog<'a> { /* private fields */ }
Implementations§
Source§impl<'a> SelectDialog<'a>
impl<'a> SelectDialog<'a>
pub fn with_theme<T: Into<Cow<'static, Theme>>>(self, theme: T) -> Self
pub fn with_height(self, height: u8) -> Self
pub fn without_filter_dialog(self) -> Self
Trait Implementations§
Source§impl<'a> Debug for SelectDialog<'a>
impl<'a> Debug for SelectDialog<'a>
Source§impl<'a> Dialog for SelectDialog<'a>
impl<'a> Dialog for SelectDialog<'a>
type Update = Update
type Output = Option<Cow<'a, str>>
fn update_for_event(event: Event) -> Option<Self::Update>
fn perform_update(&mut self, update: Self::Update) -> Result<()>
fn state(&self) -> DialogState
fn output(self) -> Self::Output
fn viewport(&self) -> Viewport
fn draw(&mut self, frame: &mut Frame<'_>)
fn tick(&mut self) -> bool
fn run(self) -> Result<Self::Output>
fn tick_rate(&self) -> Duration
fn timeout(&self) -> Option<Duration>
Auto Trait Implementations§
impl<'a> !Freeze for SelectDialog<'a>
impl<'a> !RefUnwindSafe for SelectDialog<'a>
impl<'a> !Send for SelectDialog<'a>
impl<'a> !Sync for SelectDialog<'a>
impl<'a> Unpin for SelectDialog<'a>
impl<'a> !UnwindSafe for SelectDialog<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more