pub struct Breakpoint<N, W> { /* private fields */ }Expand description
One widget below a width and another from it up.
It measures and renders whichever widget applies at the context’s width,
so a table can give way to Definitions on a narrow
terminal. Each widget holds the data it draws, owned or borrowed:
Breakpoint::new(40, &definitions, &table) works.
Implementations§
Source§impl<N: Renderable, W: Renderable> Breakpoint<N, W>
impl<N: Renderable, W: Renderable> Breakpoint<N, W>
Trait Implementations§
Source§impl<N: Renderable, W: Renderable> Renderable for Breakpoint<N, W>
impl<N: Renderable, W: Renderable> Renderable for Breakpoint<N, W>
Auto Trait Implementations§
impl<N, W> Forget for Breakpoint<N, W>
impl<N, W> Freeze for Breakpoint<N, W>
impl<N, W> RefUnwindSafe for Breakpoint<N, W>where
N: RefUnwindSafe,
W: RefUnwindSafe,
impl<N, W> Send for Breakpoint<N, W>
impl<N, W> Sync for Breakpoint<N, W>
impl<N, W> Unpin for Breakpoint<N, W>
impl<N, W> UnsafeUnpin for Breakpoint<N, W>where
N: UnsafeUnpin,
W: UnsafeUnpin,
impl<N, W> UnwindSafe for Breakpoint<N, W>where
N: UnwindSafe,
W: 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