Skip to main content

ManagerScreenExt

Trait ManagerScreenExt 

Source
pub trait ManagerScreenExt<This>{
Show 17 methods // Required methods fn screen<Syntax>( &self, syntax: &Syntax, application: Application<'_>, ) -> Syntax::Screen where Syntax: ScreenSyntax; fn header_line<Syntax>( &self, syntax: &Syntax, application: Application<'_>, ) -> Syntax::Line where Syntax: ScreenSyntax; fn footer_line<Syntax>(&self, syntax: &Syntax) -> Syntax::Line where Syntax: ScreenSyntax; fn body<Syntax>(&self, syntax: &Syntax) -> Syntax::Body where Syntax: ScreenSyntax; fn collection_body<Syntax>( &self, syntax: &Syntax, expanded: Option<This::Id>, ) -> Syntax::Body where Syntax: ScreenSyntax; fn compact_row<Syntax>( &self, syntax: &Syntax, id: This::Id, entry: &This::Entry, ) -> Syntax::Row where Syntax: ScreenSyntax; fn expanded_row<Syntax>( &self, syntax: &Syntax, id: This::Id, entry: &This::Entry, ) -> Syntax::Row where Syntax: ScreenSyntax; fn input_line<Syntax>( &self, syntax: &Syntax, id: This::Id, entry: &This::Entry, ) -> Syntax::Line where Syntax: ScreenSyntax; fn output_line<Syntax>( &self, syntax: &Syntax, id: This::Id, entry: &This::Entry, ) -> Syntax::Line where Syntax: ScreenSyntax; fn format_choice_parts(&self, entry: &This::Entry) -> (String, String); fn command_body<Syntax>( &self, syntax: &Syntax, id: This::Id, ) -> Syntax::Body where Syntax: ScreenSyntax; fn transfer_summary_text(&self, entry: &This::Entry) -> String; fn formats_body<Syntax>( &self, syntax: &Syntax, id: This::Id, ) -> Syntax::Body where Syntax: ScreenSyntax; fn chosen_choice_row(&self, entry: &This::Entry, discovered: bool) -> usize; fn report_body<Syntax>(&self, syntax: &Syntax, id: This::Id) -> Syntax::Body where Syntax: ScreenSyntax; fn record_body<Syntax>(&self, syntax: &Syntax, id: This::Id) -> Syntax::Body where Syntax: ScreenSyntax; fn draft_body<Syntax>(&self, syntax: &Syntax) -> Syntax::Body where Syntax: ScreenSyntax;
}
Expand description

Composes every manager page from what the manager states about itself.

Required Methods§

Source

fn screen<Syntax>( &self, syntax: &Syntax, application: Application<'_>, ) -> Syntax::Screen
where Syntax: ScreenSyntax,

States the whole screen the current page denotes.

Source

fn header_line<Syntax>( &self, syntax: &Syntax, application: Application<'_>, ) -> Syntax::Line
where Syntax: ScreenSyntax,

States what the current page belongs to and the path that reached it.

Source

fn footer_line<Syntax>(&self, syntax: &Syntax) -> Syntax::Line
where Syntax: ScreenSyntax,

States every menu entry the page offers, the unavailable ones stated quietly.

Source

fn body<Syntax>(&self, syntax: &Syntax) -> Syntax::Body
where Syntax: ScreenSyntax,

States what the current page holds.

Source

fn collection_body<Syntax>( &self, syntax: &Syntax, expanded: Option<This::Id>, ) -> Syntax::Body
where Syntax: ScreenSyntax,

States the collection, one row per request, at most one of them expanded.

Source

fn compact_row<Syntax>( &self, syntax: &Syntax, id: This::Id, entry: &This::Entry, ) -> Syntax::Row
where Syntax: ScreenSyntax,

States one request in one line: how far it has come, what it is, and where it stands.

Source

fn expanded_row<Syntax>( &self, syntax: &Syntax, id: This::Id, entry: &This::Entry, ) -> Syntax::Row
where Syntax: ScreenSyntax,

States everything one request holds, and everything that can be done to it.

Source

fn input_line<Syntax>( &self, syntax: &Syntax, id: This::Id, entry: &This::Entry, ) -> Syntax::Line
where Syntax: ScreenSyntax,

States where the request comes from, or the draft renaming that.

Source

fn output_line<Syntax>( &self, syntax: &Syntax, id: This::Id, entry: &This::Entry, ) -> Syntax::Line
where Syntax: ScreenSyntax,

States where the request will be published, or the draft renaming it.

Source

fn format_choice_parts(&self, entry: &This::Entry) -> (String, String)

States what the request chose: what it is called, and what choosing it does.

A choice a reader would not recognize by name says what it does, and says it right after its name: the two are one phrase, and a column between them would break it in half.

Source

fn command_body<Syntax>(&self, syntax: &Syntax, id: This::Id) -> Syntax::Body
where Syntax: ScreenSyntax,

States the whole command one request would run, and nothing else.

Source

fn transfer_summary_text(&self, entry: &This::Entry) -> String

States what a transfer has moved and how quickly, in one phrase.

Source

fn formats_body<Syntax>(&self, syntax: &Syntax, id: This::Id) -> Syntax::Body
where Syntax: ScreenSyntax,

States the choices one request offers: the roles first, then everything discovered.

Source

fn chosen_choice_row(&self, entry: &This::Entry, discovered: bool) -> usize

States which offered row the request’s current choice rests on.

Source

fn report_body<Syntax>(&self, syntax: &Syntax, id: This::Id) -> Syntax::Body
where Syntax: ScreenSyntax,

States what the rehearsal said one request would do.

Source

fn record_body<Syntax>(&self, syntax: &Syntax, id: This::Id) -> Syntax::Body
where Syntax: ScreenSyntax,

States everything observed about one request, in the order it was observed.

Source

fn draft_body<Syntax>(&self, syntax: &Syntax) -> Syntax::Body
where Syntax: ScreenSyntax,

States the sources draft under edit, and the shapes a source may be written in.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<This> ManagerScreenExt<This> for This

Composes every manager page from what the manager states about itself.