pub struct TuiPages<V, A, S, Pages = (), Handler = (), O = (), M = ()> {
pub input: InputPipeline<A>,
pub commands: CommandResolver<A>,
pub focus: FocusManager<O, M>,
pub buffer: BufferState<V>,
/* private fields */
}Fields§
§input: InputPipeline<A>§commands: CommandResolver<A>§focus: FocusManager<O, M>§buffer: BufferState<V>Implementations§
Source§impl<V, A, S, O, M> TuiPages<V, A, S, (), (), O, M>
impl<V, A, S, O, M> TuiPages<V, A, S, (), (), O, M>
pub fn builder(initial_view: V) -> TuiPagesBuilder<V, A, S, O, M, (), ()>
Source§impl<V, A, S, Pages, Handler, O, M> TuiPages<V, A, S, Pages, Handler, O, M>where
V: Clone + PartialEq,
A: Clone,
O: Clone + PartialEq,
Pages: PageProvider<V, S, O>,
Handler: TuiActionHandler<V, A, S, O, M>,
impl<V, A, S, Pages, Handler, O, M> TuiPages<V, A, S, Pages, Handler, O, M>where
V: Clone + PartialEq,
A: Clone,
O: Clone + PartialEq,
Pages: PageProvider<V, S, O>,
Handler: TuiActionHandler<V, A, S, O, M>,
pub fn current_view(&self) -> &V
pub fn pages(&self) -> &Pages
pub fn pages_mut(&mut self) -> &mut Pages
pub fn handler(&self) -> &Handler
pub fn handler_mut(&mut self) -> &mut Handler
pub fn refresh_page(&mut self, state: &S)
pub fn handle_key( &mut self, key: KeyEvent, state: &mut S, ) -> TuiPagesResult<TuiPagesOutput<A>, Handler::Error>
pub fn submit_command( &mut self, input: &str, state: &mut S, ) -> TuiPagesResult<TuiPagesOutput<A>, Handler::Error>
pub fn apply_effect(&mut self, effect: TuiEffect<V, O, M>, state: &S) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<V, A, S, Pages, Handler, O, M> Freeze for TuiPages<V, A, S, Pages, Handler, O, M>
impl<V, A, S, Pages, Handler, O, M> RefUnwindSafe for TuiPages<V, A, S, Pages, Handler, O, M>where
Pages: RefUnwindSafe,
Handler: RefUnwindSafe,
V: RefUnwindSafe,
S: RefUnwindSafe,
O: RefUnwindSafe,
M: RefUnwindSafe,
A: RefUnwindSafe,
impl<V, A, S, Pages, Handler, O, M> Send for TuiPages<V, A, S, Pages, Handler, O, M>
impl<V, A, S, Pages, Handler, O, M> Sync for TuiPages<V, A, S, Pages, Handler, O, M>
impl<V, A, S, Pages, Handler, O, M> Unpin for TuiPages<V, A, S, Pages, Handler, O, M>
impl<V, A, S, Pages, Handler, O, M> UnsafeUnpin for TuiPages<V, A, S, Pages, Handler, O, M>
impl<V, A, S, Pages, Handler, O, M> UnwindSafe for TuiPages<V, A, S, Pages, Handler, O, M>where
Pages: UnwindSafe,
Handler: UnwindSafe,
V: UnwindSafe,
S: UnwindSafe,
O: UnwindSafe,
M: UnwindSafe,
A: 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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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