Struct rat_widget::list::List
source · pub struct List<'a, Selection> { /* private fields */ }Expand description
List widget.
Fully compatible with ratatui List. Add Scroll, selection models, and event-handling.
Implementations§
source§impl<'a, Selection> List<'a, Selection>
impl<'a, Selection> List<'a, Selection>
sourcepub fn select_style<S: Into<Style>>(self, select_style: S) -> Self
pub fn select_style<S: Into<Style>>(self, select_style: S) -> Self
Select style.
sourcepub fn focus_style<S: Into<Style>>(self, focus_style: S) -> Self
pub fn focus_style<S: Into<Style>>(self, focus_style: S) -> Self
Focused style.
sourcepub fn direction(self, direction: ListDirection) -> Self
pub fn direction(self, direction: ListDirection) -> Self
List direction.
Trait Implementations§
source§impl<'a, Item, Selection> FromIterator<Item> for List<'a, Selection>
impl<'a, Item, Selection> FromIterator<Item> for List<'a, Selection>
source§fn from_iter<Iter: IntoIterator<Item = Item>>(iter: Iter) -> Self
fn from_iter<Iter: IntoIterator<Item = Item>>(iter: Iter) -> Self
Creates a value from an iterator. Read more
source§impl<'a, Selection: ListSelection> StatefulWidget for List<'a, Selection>
impl<'a, Selection: ListSelection> StatefulWidget for List<'a, Selection>
Auto Trait Implementations§
impl<'a, Selection> Freeze for List<'a, Selection>
impl<'a, Selection> RefUnwindSafe for List<'a, Selection>where
Selection: RefUnwindSafe,
impl<'a, Selection> Send for List<'a, Selection>where
Selection: Send,
impl<'a, Selection> Sync for List<'a, Selection>where
Selection: Sync,
impl<'a, Selection> Unpin for List<'a, Selection>where
Selection: Unpin,
impl<'a, Selection> UnwindSafe for List<'a, Selection>where
Selection: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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