[−][src]Struct tui::widgets::List
Methods
impl<'b, L> List<'b, L> where
L: Iterator<Item = Text<'b>>,
[src]
L: Iterator<Item = Text<'b>>,
pub fn new(items: L) -> List<'b, L>
[src]
pub fn block(self, block: Block<'b>) -> List<'b, L>
[src]
pub fn items<I>(self, items: I) -> List<'b, L> where
I: IntoIterator<Item = Text<'b>, IntoIter = L>,
[src]
I: IntoIterator<Item = Text<'b>, IntoIter = L>,
pub fn style(self, style: Style) -> List<'b, L>
[src]
pub fn start_corner(self, corner: Corner) -> List<'b, L>
[src]
Trait Implementations
impl<'b, L> Widget for List<'b, L> where
L: Iterator<Item = Text<'b>>,
[src]
L: Iterator<Item = Text<'b>>,
fn draw(&mut self, area: Rect, buf: &mut Buffer)
[src]
fn background(&self, area: Rect, buf: &mut Buffer, color: Color)
[src]
Helper method to quickly set the background of all cells inside the specified area.
fn render<B>(&mut self, f: &mut Frame<B>, area: Rect) where
Self: Sized,
B: Backend,
[src]
Self: Sized,
B: Backend,
Helper method that can be chained with a widget's builder methods to render it.
impl<'b, L> Default for List<'b, L> where
L: Iterator<Item = Text<'b>> + Default,
[src]
L: Iterator<Item = Text<'b>> + Default,
Auto Trait Implementations
impl<'b, L> Unpin for List<'b, L> where
L: Unpin,
L: Unpin,
impl<'b, L> Sync for List<'b, L> where
L: Sync,
L: Sync,
impl<'b, L> Send for List<'b, L> where
L: Send,
L: Send,
impl<'b, L> RefUnwindSafe for List<'b, L> where
L: RefUnwindSafe,
L: RefUnwindSafe,
impl<'b, L> UnwindSafe for List<'b, L> where
L: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,