Struct rat_widget::list::RList
source · pub struct RList<'a, Selection> { /* private fields */ }Implementations§
source§impl<'a, Selection> RList<'a, Selection>
impl<'a, Selection> RList<'a, Selection>
pub fn new<T>(items: T) -> Self
pub fn items<T>(self, items: T) -> Self
pub fn block(self, block: Block<'a>) -> Self
pub fn styles(self, styles: ListStyle) -> Self
pub fn style<S: Into<Style>>(self, style: S) -> Self
pub fn select_style<S: Into<Style>>(self, select_style: S) -> Self
pub fn focus_style<S: Into<Style>>(self, focus_style: S) -> Self
pub fn direction(self, direction: ListDirection) -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl<'a, Item, Selection> FromIterator<Item> for RList<'a, Selection>
impl<'a, Item, Selection> FromIterator<Item> for RList<'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 RList<'a, Selection>
impl<'a, Selection: ListSelection> StatefulWidget for RList<'a, Selection>
Auto Trait Implementations§
impl<'a, Selection> Freeze for RList<'a, Selection>
impl<'a, Selection> RefUnwindSafe for RList<'a, Selection>where
Selection: RefUnwindSafe,
impl<'a, Selection> Send for RList<'a, Selection>where
Selection: Send,
impl<'a, Selection> Sync for RList<'a, Selection>where
Selection: Sync,
impl<'a, Selection> Unpin for RList<'a, Selection>where
Selection: Unpin,
impl<'a, Selection> UnwindSafe for RList<'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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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