pub struct List<S = Vec<Row>> { /* private fields */ }Implementations§
Source§impl List
impl List
pub fn new() -> Self
pub fn with_rows(self, rows: impl IntoIterator<Item = Row>) -> Self
pub fn set_rows(&mut self, rows: impl IntoIterator<Item = Row>)
pub fn push(&mut self, row: Row)
pub fn clear(&mut self)
pub fn rows(&self) -> &[Row]
pub fn selected_row(&self) -> Option<&Row>
pub fn row_mut(&mut self, index: usize) -> Option<&mut Row>
Source§impl<S: Source> List<S>
impl<S: Source> List<S>
pub fn from_source(source: S) -> Self
pub fn keys(self, keys: Keys) -> Self
pub fn paging(self, paging: Paging) -> Self
pub fn source(&self) -> &S
pub fn set_source(&mut self, source: S)
pub fn update(&mut self, change: impl FnOnce(&mut S))
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn selected(&self) -> Option<usize>
pub fn select(&mut self, index: usize)
pub fn select_range(&mut self, range: Option<(usize, usize)>)
pub fn range(&self) -> Option<(usize, usize)>
pub fn top(&self) -> usize
pub fn scroll_to(&mut self, top: usize)
pub fn page(&self) -> usize
pub fn columns(&self) -> &[(usize, u16, u16)]
pub fn shown(&self) -> Option<(usize, usize, usize)>
pub fn position(&self) -> Option<(usize, usize)>
pub fn up(&mut self) -> Step
pub fn down(&mut self) -> Step
pub fn page_up(&mut self) -> Step
pub fn page_down(&mut self) -> Step
pub fn first(&mut self) -> Step
pub fn last(&mut self) -> Step
pub fn key(&mut self, key: Key) -> Step
pub fn hit( &self, area: Rect, header: bool, column: u16, row: u16, ) -> Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for List<S>where
S: Freeze,
impl<S> RefUnwindSafe for List<S>where
S: RefUnwindSafe,
impl<S> Send for List<S>where
S: Send,
impl<S> Sync for List<S>where
S: Sync,
impl<S> Unpin for List<S>where
S: Unpin,
impl<S> UnsafeUnpin for List<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for List<S>where
S: 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§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