pub struct App {Show 22 fields
pub data_table_state: Option<DataTableState>,
pub home_app: HomeApp,
pub home: HomeState,
pub info_modal: InfoModal,
pub info: InfoState,
pub prompt: QueryPrompt,
pub input_mode: InputMode,
pub overlay: Overlay,
pub sort_filter_modal: SortFilterModal,
pub pivot_melt_modal: PivotMeltModal,
pub view_modal: ViewModal,
pub analysis_modal: AnalysisModal,
pub sample: SampleState,
pub chart: Charts,
pub export_modal: ExportModal,
pub copy_modal: CopyModal,
pub inspector_modal: InspectorModal,
pub pickers: Pickers,
pub value_counts: ValueCountsModal,
pub column_forms: ColumnForms,
pub hex: HexState,
pub confirmation_modal: ConfirmationModal,
/* private fields */
}Fields§
§data_table_state: Option<DataTableState>§home_app: HomeAppThe home screen’s work in flight, and what it keeps for the session.
home: HomeStateHome screen state, rebuilt whenever home is entered.
info_modal: InfoModal§info: InfoStateWhat the Info panel shows of the dataset beyond its schema.
prompt: QueryPromptThe command line: its inputs per mode, completion, and the query it is running.
input_mode: InputMode§overlay: OverlayWhat is open over the table. See Overlay.
sort_filter_modal: SortFilterModal§pivot_melt_modal: PivotMeltModal§view_modal: ViewModal§analysis_modal: AnalysisModal§sample: SampleStateThe sample form, and what the draws learned of memory and of the paths they took.
chart: ChartsThe chart view, its export form, and the preparations it keeps or waits on.
export_modal: ExportModal§copy_modal: CopyModal§inspector_modal: InspectorModal§pickers: PickersThe go-to-column, format and table pickers.
value_counts: ValueCountsModalThe Value Counts screen (F).
column_forms: ColumnFormsThe retype and combine forms.
hex: HexStateThe hex view, and the number its next read is tagged with.
confirmation_modal: ConfirmationModalImplementations§
Source§impl App
impl App
Sourcepub fn set_memory_probe(&mut self, probe: MemoryProbe)
pub fn set_memory_probe(&mut self, probe: MemoryProbe)
Read available memory from probe instead of the system (for tests).
Sourcepub fn sample_drawing(&self) -> bool
pub fn sample_drawing(&self) -> bool
Whether the view’s sample is being drawn.
Source§impl App
impl App
Sourcepub fn python_script(&self, state: &DataTableState) -> String
pub fn python_script(&self, state: &DataTableState) -> String
The view on screen as a Python Polars script: the open’s reader, then every
step that made the view. See python_script.
Sourcepub fn set_clipboard_destination(&mut self, destination: Box<dyn Destination>)
pub fn set_clipboard_destination(&mut self, destination: Box<dyn Destination>)
Replace the clipboard destination, so tests can watch copies without a display or terminal.
Source§impl App
impl App
Sourcepub fn sibling_tables(&self) -> Option<Tables>
pub fn sibling_tables(&self) -> Option<Tables>
The tables of the source on screen, from what its open holds; None for a
source of one.
Sourcepub fn offers_other_tables(&self) -> bool
pub fn offers_other_tables(&self) -> bool
Whether the source on screen has another table for T to open.
Source§impl App
impl App
Sourcepub fn request_reshape_preview(&mut self)
pub fn request_reshape_preview(&mut self)
Ask for a preview of the staged spec unless already asked. One worker at a time: an edit made meanwhile is previewed when it ends.
Sourcepub fn reshape_preview_pending(&self) -> bool
pub fn reshape_preview_pending(&self) -> bool
Whether the builder’s preview has an answer still to come.
Source§impl App
impl App
Sourcepub fn close_overlay(&mut self)
pub fn close_overlay(&mut self)
Close the overlay, dropping what it held for this opening, and go back to what it was opened over.
Source§impl App
impl App
Sourcepub fn pointer(&mut self, mouse: &MouseEvent, now: Instant) -> Pointer
pub fn pointer(&mut self, mouse: &MouseEvent, now: Instant) -> Pointer
What a mouse event means on the screen last drawn.
Sourcepub fn cancel_drag(&mut self)
pub fn cancel_drag(&mut self)
A key was pressed: a header being carried is put back, and its mark goes.
Sourcepub fn forget_click(&mut self)
pub fn forget_click(&mut self)
Forget the last click and any drag: it was dropped, so the next is not its second, and nothing was picked up.
Sourcepub fn point(&mut self, target: &Target)
pub fn point(&mut self, target: &Target)
Move the cursor to what a click or the wheel landed on. A press on a header picks the column up, for a drag to move.
Put the cursor on the cell a right click landed on, for the menu. Returns whether it is there: rows that moved since they were drawn are not the ones clicked, and the menu would act on another cell.
Sourcepub fn focus_field(&mut self, id: &FieldId) -> Option<Clicked>
pub fn focus_field(&mut self, id: &FieldId) -> Option<Clicked>
Focus the field a click landed on, in whichever form drew it.
Sourcepub fn point_at_tool(&mut self, tool: usize)
pub fn point_at_tool(&mut self, tool: usize)
Put the analysis tools list’s cursor on tool, the list focused, as Tab and
the arrows would.
Sourcepub fn start_resize(&mut self, column: String, x: u16)
pub fn start_resize(&mut self, column: String, x: u16)
Start a width drag on column, from the width it has now.
Sourcepub fn set_dragged_width(&mut self, column: String, width: u16)
pub fn set_dragged_width(&mut self, column: String, width: u16)
Set a column’s width by hand, as < and > do, within their bounds.
Source§impl App
impl App
Sourcepub fn chart_preparing(&self) -> bool
pub fn chart_preparing(&self) -> bool
Whether chart data for the current view is being prepared: running, or waiting
behind a superseded preparation still reading (unstoppable, see ChartPrep).
Sourcepub fn chart_names(&self) -> Option<Vec<String>>
pub fn chart_names(&self) -> Option<Vec<String>>
The series of the line or scatter chart on screen, by name, once prepared: its Y columns or its color groups.
Sourcepub fn chart_data_ready(&self) -> bool
pub fn chart_data_ready(&self) -> bool
True when the chart cache holds the data for the modal’s current selection.
Source§impl App
impl App
Sourcepub fn live_on_screen(&self) -> Option<usize>
pub fn live_on_screen(&self) -> Option<usize>
The matches the prompt’s pattern has among the rows on screen, while the prompt is open.
Sourcepub fn live_cells(&self) -> Option<Arc<MatchCells>>
pub fn live_cells(&self) -> Option<Arc<MatchCells>>
The cells to light up: the prompt’s matches while it is open.
Sourcepub fn find_hit(&self) -> Option<(usize, String)>
pub fn find_hit(&self) -> Option<(usize, String)>
The cell the find in effect landed on, while the view is the one it searched.
Source§impl App
impl App
Sourcepub fn home_schema(&mut self, entry: &Entry) -> Option<SchemaPreview>
pub fn home_schema(&mut self, entry: &Entry) -> Option<SchemaPreview>
Schema for a home entry, from Parquet metadata, memoized for the session. None
means not knowable without a scan, and the UI says so.
Sourcepub fn home_preview_rows(
&mut self,
entry: &Entry,
screen_height: u16,
) -> Option<Arc<PreviewRows>>
pub fn home_preview_rows( &mut self, entry: &Entry, screen_height: u16, ) -> Option<Arc<PreviewRows>>
A home file’s first rows for its ROWS preview, read on a worker as its open
reads them. None until they land or when not previewed. screen_height sizes
the page to the table’s.
Sourcepub fn home_preview_pending(&self, path: &Path) -> bool
pub fn home_preview_pending(&self, path: &Path) -> bool
Whether entry is one the preview reads, before its rows are in.
Sourcepub fn home_schema_pending(&self, path: &Path) -> bool
pub fn home_schema_pending(&self, path: &Path) -> bool
Whether a schema read is currently out for this path.
pub fn enter_home(&mut self)
Source§impl App
impl App
Sourcepub fn enter_inspects(&self) -> bool
pub fn enter_inspects(&self) -> bool
Whether Enter at the table opens the inspector, as Space does: a table whose rows
do not drill into groups (a by view, a SQL GROUP BY), and not inside a
drill-down.
Source§impl App
impl App
Sourcepub fn row_count_pending(&self) -> bool
pub fn row_count_pending(&self) -> bool
Whether the footer’s row count is on its way, so a spinner stands in. Asked by the bar and by the run loop that turns the spinner, so they agree.
Sourcepub fn count_waits_for_a_frame(&self) -> bool
pub fn count_waits_for_a_frame(&self) -> bool
Whether a paint now would start or retire the count waiting on one. A test harness, which paints nothing, asks this to know when to report a paint.
Sourcepub fn frame_painted(&mut self)
pub fn frame_painted(&mut self)
A frame was painted: read the rows it needed and start the count waiting on it.
Sourcepub fn unfit_count_pending(&self) -> bool
pub fn unfit_count_pending(&self) -> bool
Whether the values the read’s column types made null are being counted.
Source§impl App
impl App
Sourcepub fn set_loading_phase(
&mut self,
phase: impl Into<String>,
progress_percent: u16,
)
pub fn set_loading_phase( &mut self, phase: impl Into<String>, progress_percent: u16, )
An open is on its way: the loading screen shows phase and keys wait. Called
before the event that carries the open out (by run, or a key before its
Open), since a frame drawn between would show the outgoing dataset.
Sourcepub fn abandon_load(&mut self)
pub fn abandon_load(&mut self)
Enter the home screen, rebuilt, with the cursor on what is open, abandoning any
load. loading::Loader::retire supersedes the open’s jobs (their answers are
dropped) and raises its stop flag, so downloads and cloud passes stop within a
wave. Work not the open’s (an export, an analysis, the screen’s footer pass) is
left running, with its progress and completion modal.
Sourcepub fn route_named_paths(paths: Vec<PathBuf>, options: OpenOptions) -> AppEvent
pub fn route_named_paths(paths: Vec<PathBuf>, options: OpenOptions) -> AppEvent
What datui <path> does with a directory, by the same rule as Enter on its
row (home::look_into_as): a hive root or a one-table directory opens as one
table, any other opens home browsed into it. --hive still forces partition
columns. Stats the path, so run calls it on a worker
(AppEvent::OpenNamed); returns LookThenOpenDirectory or Open.
Sourcepub fn route_named_paths_with(
paths: Vec<PathBuf>,
options: OpenOptions,
formats: &Registry,
) -> AppEvent
pub fn route_named_paths_with( paths: Vec<PathBuf>, options: OpenOptions, formats: &Registry, ) -> AppEvent
Self::route_named_paths with the format specs: a directory a spec reads as
column files opens rather than being looked at.
Source§impl App
impl App
Sourcepub fn query_prompt_mode(&self) -> Option<QueryMode>
pub fn query_prompt_mode(&self) -> Option<QueryMode>
The command line’s language while it is open.
Sourcepub fn query_prompt_text(&self) -> Option<&str>
pub fn query_prompt_text(&self) -> Option<&str>
The command line’s text, while it is open.
Sourcepub fn query_prompt_error(&self) -> Option<String>
pub fn query_prompt_error(&self) -> Option<String>
Why the last run failed, for the line under the input: a statement that failed while running, else one that could not be planned.
Sourcepub fn inline_failures(&self) -> u64
pub fn inline_failures(&self) -> u64
Bumped each time a running statement’s failure is put in the prompt.
Source§impl App
impl App
pub fn create_view_from_current_state( &mut self, name: String, description: Option<String>, match_criteria: MatchCriteria, ) -> Result<SavedView>
Source§impl App
impl App
Sourcepub const LOOKING_AT_A_DIRECTORY: &'static str = "Looking at the directory"
pub const LOOKING_AT_A_DIRECTORY: &'static str = "Looking at the directory"
The wait while a directory named on the command line is looked at (seconds for large Parquet).
Sourcepub const LOADING_BUFFER: &'static str = "Loading buffer..."
pub const LOADING_BUFFER: &'static str = "Loading buffer..."
The wait while the rows for the view are fetched.
Sourcepub fn is_busy(&self) -> bool
pub fn is_busy(&self) -> bool
Whether keys wait: a job the user waits on runs or is owed, an errand is between phases, or an open is on its way.
Sourcepub fn task_generation(&self) -> u64
pub fn task_generation(&self) -> u64
The generation background answers are judged by.
Sourcepub fn job_is_current(&self, ticket: Ticket) -> bool
pub fn job_is_current(&self, ticket: Ticket) -> bool
Whether the job ticket names is still running and its answer still wanted.
Sourcepub fn use_cache(&mut self, cache: CacheManager)
pub fn use_cache(&mut self, cache: CacheManager)
Use cache from now on. For tests that read their store back: a shared one
loses entries to other tests’ opens.
Sourcepub fn use_catalog_dir(&mut self, dir: &Path) -> Result<()>
pub fn use_catalog_dir(&mut self, dir: &Path) -> Result<()>
Read and write catalog.toml in dir, so a test’s Ctrl+D stays out of the
shared config directory.
Sourcepub fn background_work_in_flight(&self) -> bool
pub fn background_work_in_flight(&self) -> bool
Whether any leased background work, current or abandoned, has yet to report.
Sourcepub fn screen_generation(&self) -> u64
pub fn screen_generation(&self) -> u64
See the screen_generation field.
Sourcepub fn modal_showing(&self) -> bool
pub fn modal_showing(&self) -> bool
True while a message is in front of the user that has to be dismissed.
Sourcepub fn follow(&self) -> Option<&Follow>
pub fn follow(&self) -> Option<&Follow>
The follow of the dataset on screen, while it is followed.
Sourcepub fn recording(&self) -> Option<&Arc<Spool>>
pub fn recording(&self) -> Option<&Arc<Spool>>
Standard input being recorded to the --tee file, for the dataset on screen.
Sourcepub fn recording_after_exit(&mut self) -> Option<(Tee, Arc<SpoolHandle>)>
pub fn recording_after_exit(&mut self) -> Option<(Tee, Arc<SpoolHandle>)>
The recording to wait for after the terminal is handed back.
Sourcepub fn flash_message(&self) -> Option<&str>
pub fn flash_message(&self) -> Option<&str>
The completion flash on the footer, if one is showing.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
The error dialog’s message, if one is showing.
Sourcepub fn next_deadline(&self) -> Option<Instant>
pub fn next_deadline(&self) -> Option<Instant>
When the screen next changes with no event (a flash expiring): the loop sleeps until then at most.
Sourcepub fn tick_follow_clock(&mut self) -> bool
pub fn tick_follow_clock(&mut self) -> bool
Whether the follow chip’s clock reads differently now: the frame must redraw.
Sourcepub fn tick_flash(&mut self) -> bool
pub fn tick_flash(&mut self) -> bool
Drop an expired flash. Returns true when the frame must redraw.
Sourcepub fn flash_polars_warning(&mut self) -> bool
pub fn flash_polars_warning(&mut self) -> bool
Flash the next Polars user warning once per session when the bar is free. True when the frame must redraw.
Sourcepub fn flash_background_panic(&mut self) -> bool
pub fn flash_background_panic(&mut self) -> bool
Flash a background thread panic nothing else reported (a job’s panic ends the job). True when the frame must redraw.
Sourcepub fn set_input_dropped(&mut self, dropped: bool)
pub fn set_input_dropped(&mut self, dropped: bool)
See the input_dropped field.
Sourcepub fn hard_escape_while_busy(&self, key: &KeyEvent) -> bool
pub fn hard_escape_while_busy(&self, key: &KeyEvent) -> bool
Escapes that act at once while busy and jump the queue: Ctrl-Q and Ctrl-C quit, Ctrl-O goes home, confirmation modals keep their keys, and the home screen (never busy on its own account) keeps every key.
Sourcepub fn key_acts_while_busy(&self, key: &KeyEvent) -> bool
pub fn key_acts_while_busy(&self, key: &KeyEvent) -> bool
Whether a key may act while busy; the main loop adds “nothing queued” for the
second group. The hard escapes always qualify. At the plain table view, keys
that read nothing act too: quit, help, and the column cursor (which re-slices
the held buffer, never collects; a count here would read cloud metadata on this
thread, see a_key_that_acts_while_busy_reads_nothing). Everything else is
type-ahead and waits. Never by keycode alone: the h in /hello never scrolls.
Sourcepub fn in_normal_table_view(&self) -> bool
pub fn in_normal_table_view(&self) -> bool
The plain table view: Normal mode with nothing drawn over it.
Open the context menu at at, over the cell the cursor was just put on.
Close the context menu, if it is open.
Choose line i of the open menu: it closes and its key is offered as typed.
Sourcepub fn drop_column(&mut self, column: &str, onto: &str) -> Option<AppEvent>
pub fn drop_column(&mut self, column: &str, onto: &str) -> Option<AppEvent>
A header dropped on another column: column moves to onto, as repeated H /
L would. Frozen columns move among the frozen, scrolling among the scrolling.
Sourcepub fn text_field_focused(&self) -> bool
pub fn text_field_focused(&self) -> bool
Whether a text field owns typed characters, so the wheel and ? leave it alone.
The home filter is excluded on purpose.
Sourcepub fn something_is_spinning(&self) -> bool
pub fn something_is_spinning(&self) -> bool
Whether a spinner is on screen, so the run loop turns it and redraws.
Sourcepub fn frame_work(&mut self)
pub fn frame_work(&mut self)
A frame’s work without painting it, in the order EventPump::run does it
around a frame: ask for what the frame needs, take in what arrived (as drawing
does), and ask again for what that changed. For a harness with no terminal, at
the point the run loop would draw: once the events on hand are handled.
The footer counter: the open’s while one is on its way, else the dataset’s. Each open counts on its own, so a replaced one cannot count under another’s name.
Sourcepub fn exit_sweep(&self) -> ExitSweep
pub fn exit_sweep(&self) -> ExitSweep
Held past the app: when dropped it removes temp files the app’s opens were still writing, giving workers up to a second to stop.
Sourcepub fn spawn_async_collect(&mut self, status: &str) -> bool
pub fn spawn_async_collect(&mut self, status: &str) -> bool
Spawn a buffer collect if needed; true if a job was spawned. Advances the
generation, invalidating any prior collect. An unknown row count is computed
in the background (BackgroundLenReady) and never gates the paint: the plan
is then a top-of-data window.
pub fn new(events: Sender<AppEvent>, runtime: Handle) -> App
pub fn new_with_theme( events: Sender<AppEvent>, runtime: Handle, theme: Theme, ) -> App
Sourcepub fn new_with_config(
events: Sender<AppEvent>,
runtime: Handle,
theme: Theme,
app_config: AppConfig,
) -> App
pub fn new_with_config( events: Sender<AppEvent>, runtime: Handle, theme: Theme, app_config: AppConfig, ) -> App
An app with its saved views read here, before it is returned.
Sourcepub fn new_with_views(
events: Sender<AppEvent>,
runtime: Handle,
theme: Theme,
app_config: AppConfig,
view_manager: Views,
) -> App
pub fn new_with_views( events: Sender<AppEvent>, runtime: Handle, theme: Theme, app_config: AppConfig, view_manager: Views, ) -> App
An app whose saved views may still be on their way (Views).
Sourcepub fn set_formats(&mut self, registry: Registry)
pub fn set_formats(&mut self, registry: Registry)
Use registry as the format specs on the search path.
pub fn enable_debug(&mut self)
Sourcepub fn request_what_the_frame_needs(&mut self)
pub fn request_what_the_frame_needs(&mut self)
After a frame, ask for what it lacked: counts for the rows on screen with none, and kinds for rows nothing has looked into. Workers read; this thread decides.
Source§impl App
impl App
Sourcepub fn help_visible(&self) -> bool
pub fn help_visible(&self) -> bool
Whether the help overlay is on screen.
Sourcepub fn help_context(&self) -> Option<Context>
pub fn help_context(&self) -> Option<Context>
The screen the help overlay shows the keys of, while it is up.
Sourcepub fn keys_context(&self) -> Context
pub fn keys_context(&self) -> Context
The screen the keys typed now go to, as the key registry names it.
Sourcepub fn awaiting_open_confirmation(&self) -> bool
pub fn awaiting_open_confirmation(&self) -> bool
True while the confirmation modal asks whether to download a remote file or read a large one whole. These can be walked away from (to home, not exit): the size probe behind them can take seconds.
Sourcepub fn handle(&mut self, event: AppEvent) -> EventOutcome
pub fn handle(&mut self, event: AppEvent) -> EventOutcome
Handle one event. A key arriving while busy is neither acted on nor dropped: it
returns as Err(key) for the caller to hold until idle, as
app::event_pump::EventPump does. App::event is for callers with nowhere to
hold a key.
pub fn event(&mut self, event: AppEvent) -> Option<AppEvent>
Sourcepub fn header_toggle_offered(&self) -> bool
pub fn header_toggle_offered(&self) -> bool
Whether the dataset is delimited text, whose header H on Info’s Schema tab
toggles.
Source§impl App
impl App
Sourcepub fn file_facts(&self) -> Option<&FileFacts>
pub fn file_facts(&self) -> Option<&FileFacts>
What the Info panel knows about the open file: None until asked, and for a
source with no local file. Cleared on install.
Sourcepub fn follow_terminal_background(&mut self, mode: ThemeMode)
pub fn follow_terminal_background(&mut self, mode: ThemeMode)
Under theme.mode = "auto", switch to theme.dark or theme.light for the
terminal’s background, with theme.colors over it. An explicit mode ignores
the terminal.
Sourcepub fn settle_first_palette(&mut self, answered: Option<ThemeMode>)
pub fn settle_first_palette(&mut self, answered: Option<ThemeMode>)
Settle the first frame’s palette under auto without waiting: answered if
given, else this terminal’s last answer. A later answer switches if it differs.
Sourcepub fn take_background_query(&mut self) -> bool
pub fn take_background_query(&mut self) -> bool
Whether the run loop should ask the terminal’s background, once (set by
AppEvent::TerminalFocused under auto).
Sourcepub fn take_repaint(&mut self) -> bool
pub fn take_repaint(&mut self) -> bool
Whether the next frame repaints every cell (after a resize, or when the terminal regains focus), for the run loop.
Sourcepub fn follows_terminal(&self) -> bool
pub fn follows_terminal(&self) -> bool
Whether the palette follows the terminal (theme.mode = "auto").
Sourcepub fn take_external_open(&mut self) -> Option<ExternalOpen>
pub fn take_external_open(&mut self) -> Option<ExternalOpen>
The value the inspector wrote for another program, for the run loop.
Sourcepub fn mouse_enabled(&self) -> bool
pub fn mouse_enabled(&self) -> bool
Whether the session reports the mouse, to retake it after a program had the terminal.
Sourcepub fn external_opened(&mut self, open: &ExternalOpen, failed: Option<String>)
pub fn external_opened(&mut self, open: &ExternalOpen, failed: Option<String>)
The run loop opened open: a waiting program is done with its file; a failure
goes on the bar.
Source§impl App
impl App
Sourcepub fn capture_view(&self) -> Result<Option<LazyFrame>>
pub fn capture_view(&self) -> Result<Option<LazyFrame>>
The view returned on exit to a caller that asked (datui.view(..., capture=True)): the committed frame without internal columns; None with no
dataset. Refused when the frame scans a temp file (download, decompressed or
converted copy), which is removed on exit; export (e) is the way out.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for App
impl !RefUnwindSafe for App
impl !Send for App
impl !Sync for App
impl !UnwindSafe for App
impl Unpin for App
impl UnsafeUnpin for App
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.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> ⓘ
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> ⓘ
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 moreSource§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more