pub struct App {
pub user_id: Uuid,
pub theme: Theme,
pub overlays: OverlayStack,
pub pending_form: Option<PendingForm>,
pub cmdline: CmdLine,
pub menu: Option<(MenuId, usize)>,
pub menu_window: RowWindow,
pub hits: Hits,
pub keys: Keys,
pub status: String,
pub should_quit: bool,
pub local_files: bool,
/* private fields */
}Fields§
§user_id: Uuid§theme: Theme§overlays: OverlayStack§pending_form: Option<PendingForm>The submitted form awaiting its reply; owns input focus while set.
cmdline: CmdLineThe open menu and its selected entry; None while it is closed.
Which entries of the open menu are in view.
hits: HitsThe clickable areas of the last frame drawn.
keys: Keys§status: String§should_quit: bool§local_files: boolWhether the transport runs on the user’s machine, so saving a file is allowed.
Implementations§
Source§impl App
impl App
Sourcepub fn show_account_balance(&mut self, input: &str)
pub fn show_account_balance(&mut self, input: &str)
Print the balances of the account input names, by label or id.
Source§impl App
impl App
pub fn open_delete_marked(&mut self)
Source§impl App
impl App
Sourcepub fn submit_commodity_convert(
&mut self,
values: &FormValues,
from_label: &str,
to_label: &str,
) -> Option<i64>
pub fn submit_commodity_convert( &mut self, values: &FormValues, from_label: &str, to_label: &str, ) -> Option<i64>
Submit the convert form; its ratio reply lands on the status line.
Returns None only when there is no eval worker or it has stopped.
Source§impl App
impl App
Sourcepub fn open_transaction_detail_selected(&mut self)
pub fn open_transaction_detail_selected(&mut self)
Dispatch the detail request of the selected transaction.
Source§impl App
impl App
Sourcepub fn open_transaction_edit_async(&mut self, id: &str)
pub fn open_transaction_edit_async(&mut self, id: &str)
Dispatch (load-form "transaction-edit" "<id>") with RouteCtx::TransactionEdit.
The async reply opens the edit form, or shows why the transaction cannot be edited.
Sourcepub fn open_account_edit_async(&mut self, id: &str)
pub fn open_account_edit_async(&mut self, id: &str)
Dispatch (load-form "account-edit" "<id>") with RouteCtx::AccountEdit.
Sourcepub fn open_commodity_edit_async(&mut self, id: &str)
pub fn open_commodity_edit_async(&mut self, id: &str)
Dispatch (load-form "commodity-edit" "<id>") with RouteCtx::CommodityEdit.
Sourcepub fn open_tag_edit_async(&mut self, id: &str)
pub fn open_tag_edit_async(&mut self, id: &str)
Dispatch (load-form "tag-edit" "<id>") with RouteCtx::TagEdit.
Sourcepub fn open_template_edit_async(&mut self, id: &str)
pub fn open_template_edit_async(&mut self, id: &str)
Dispatch (load-form "template-edit" "<id>") with TemplateRoute::Edit.
Sourcepub fn open_script_edit_async(&mut self, id: &str)
pub fn open_script_edit_async(&mut self, id: &str)
Dispatch (load-form "script-edit" "<id>") with ScriptRoute::Edit.
Sourcepub fn open_transaction_edit_from(&mut self, window: WindowId, id: &str)
pub fn open_transaction_edit_from(&mut self, window: WindowId, id: &str)
As open_transaction_edit_async, from window whatever it shows: a detail’s edit.
Source§impl App
impl App
pub fn submit_console_form(&mut self, console: WindowId, form: String)
Sourcepub fn submit_to_console(&mut self, form: String) -> WindowId
pub fn submit_to_console(&mut self, form: String) -> WindowId
Submits form to the front-most console window, or to a new one; returns it.
Sourcepub fn interrupt_console(&mut self)
pub fn interrupt_console(&mut self)
Aborts what the front console is evaluating.
Sourcepub fn drain_eval(&mut self) -> bool
pub fn drain_eval(&mut self) -> bool
Applies every ready reply; true when there was one, so the screen is stale.
pub fn fetch_config(&mut self, window: WindowId)
Sourcepub fn clear_transaction_filter(&mut self, window: WindowId)
pub fn clear_transaction_filter(&mut self, window: WindowId)
Drop the filter of Transactions window window and fetch the whole list again.
Source§impl App
impl App
Sourcepub fn filter_transactions(&mut self, filter: FormValues)
pub fn filter_transactions(&mut self, filter: FormValues)
Filter the Transactions tab by filter, whose account may be a label.
Sourcepub fn show_all_transactions(&mut self)
pub fn show_all_transactions(&mut self)
Drop the Transactions filter and show the window.
Sourcepub fn filter_transactions_of_selected_account(&mut self)
pub fn filter_transactions_of_selected_account(&mut self)
Filter the Transactions tab by the account selected on the Accounts tab.
Source§impl App
impl App
Sourcepub fn fetch_account_form_options(&mut self)
pub fn fetch_account_form_options(&mut self)
Issue a form-options fetch to populate the parent Select in the open
account-create form. Bumps form_options_seq so a stale reply is dropped.
Sourcepub fn fetch_commodity_form_options(&mut self)
pub fn fetch_commodity_form_options(&mut self)
Issue a form-options fetch for the commodity selects of the open report or convert form.
Sourcepub fn fetch_transaction_form_options(&mut self)
pub fn fetch_transaction_form_options(&mut self)
Issue form-options for accounts and commodities to populate the Selects
in the open transaction form. Both requests share the same seq.
Sourcepub fn request_account_and_commodity_options(&mut self)
pub fn request_account_and_commodity_options(&mut self)
Ask for both option lists under the current seq, so replies already in flight for the form beneath stay valid.
Source§impl App
impl App
The entries of the open menu, the View’s when none is open.
The open menu.
The selected entry of the open menu, kept on the last one when the list has shrunk.
Opens the View menu on the active view.
Opens menu: the View on the active view, the Window on its first entry.
Opens the menu to the right of the open one, wrapping.
Selects entry at of the open menu.
The intent of the selected entry; None when it is disabled or no menu is open.
The entry whose mnemonic letter or shown key key types; any other key names none.
Source§impl App
impl App
Sourcepub fn open_account_merge(&mut self, values: FormValues)
pub fn open_account_merge(&mut self, values: FormValues)
Open the merge form with the from/into of values chosen, each an
account label or id.
Source§impl App
impl App
pub fn submit_delete_transaction(&mut self, id: &str) -> Option<i64>
pub fn submit_add_ssh_key(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_remove_ssh_key(&mut self, fingerprint: String)
pub fn submit_tag_create(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_tag_edit(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_delete_tag(&mut self, id: &str, label: String)
pub fn submit_template_create(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_template_edit(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_script_create(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_script_edit(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_delete_script(&mut self, id: &str, label: String)
pub fn submit_delete_template(&mut self, id: &str, label: String)
pub fn submit_commodity_create(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_commodity_edit(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_config_set(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_account_create(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_account_edit(&mut self, values: &FormValues) -> Option<i64>
pub fn submit_account_merge(&mut self, values: &FormValues) -> Option<i64>
Sourcepub fn submit_report(
&mut self,
window: WindowId,
kind: ReportKind,
values: &FormValues,
) -> Option<i64>
pub fn submit_report( &mut self, window: WindowId, kind: ReportKind, values: &FormValues, ) -> Option<i64>
Runs a report form in Reports window window, where its reply renders. Returns None
if there is no eval worker, window is not a Reports window or the worker has stopped.
Sourcepub fn submit_transaction_filter(
&mut self,
window: WindowId,
values: &FormValues,
summary: String,
) -> Option<i64>
pub fn submit_transaction_filter( &mut self, window: WindowId, values: &FormValues, summary: String, ) -> Option<i64>
Fetch the first page of a filter in Transactions window window; the window adopts the
filter only when the server accepts it.
Sourcepub fn submit_transaction(
&mut self,
descriptor: &Form,
values: &FormValues,
) -> Option<i64>
pub fn submit_transaction( &mut self, descriptor: &Form, values: &FormValues, ) -> Option<i64>
Submit a transaction-create or transaction-edit form.
Source§impl App
impl App
Sourcepub fn page_transactions(&mut self, forward: bool)
pub fn page_transactions(&mut self, forward: bool)
Fetch the next or previous page of the Transactions tab.
Sourcepub fn continue_transactions_page(
&mut self,
window: WindowId,
forward: bool,
) -> bool
pub fn continue_transactions_page( &mut self, window: WindowId, forward: bool, ) -> bool
Continue window window into the next (forward) or previous page when its selection
is on the loaded page’s edge row; false when the move stays on the page.
Source§impl App
impl App
Sourcepub fn refresh_windows(&mut self, kind: ViewId)
pub fn refresh_windows(&mut self, kind: ViewId)
Fetches again what every window of kind shows, whether or not its dialog’s window is
still there.
Source§impl App
impl App
Sourcepub fn run_report_request(&mut self, req: ReportRequest)
pub fn run_report_request(&mut self, req: ReportRequest)
Run a palette report, after resolving its typed select values.
Source§impl App
impl App
Sourcepub fn toggle_report_chart(&mut self)
pub fn toggle_report_chart(&mut self)
Switch between the table and the chart of the shown report.
Sourcepub fn sync_terminal(&mut self, env: TerminalEnv)
pub fn sync_terminal(&mut self, env: TerminalEnv)
Adopt the terminal’s geometry; a changed one draws every shown chart again.
Source§impl App
impl App
Sourcepub fn request_report_csv(&mut self)
pub fn request_report_csv(&mut self)
Ask for the CSV of the shown category report.
Sourcepub fn take_outbound(&mut self) -> Vec<Vec<u8>>
pub fn take_outbound(&mut self) -> Vec<Vec<u8>>
The raw terminal output queued since the last call.
Sourcepub fn begin_csv_save(&mut self)
pub fn begin_csv_save(&mut self)
Open the save-path prompt; saving files is for the local transport only.
Source§impl App
impl App
Sourcepub fn edit_last_report(&mut self)
pub fn edit_last_report(&mut self)
Reopen the last report’s form prefilled with its stored values.
pub fn new_report(&mut self, kind: ReportKind)
Source§impl App
impl App
pub fn fetch_scripts(&mut self, window: WindowId)
Sourcepub fn confirm_delete_script(&mut self, script: ScriptRow)
pub fn confirm_delete_script(&mut self, script: ScriptRow)
Asks before deleting script.
Sourcepub fn toggle_script(&mut self, script: &ScriptRow)
pub fn toggle_script(&mut self, script: &ScriptRow)
Loads script for its revision, then saves it with the other state.
Source§impl App
impl App
pub fn fetch_ssh_keys(&mut self, window: WindowId)
Sourcepub fn confirm_remove_ssh_key(&mut self, fingerprint: String)
pub fn confirm_remove_ssh_key(&mut self, fingerprint: String)
Asks before removing the key fingerprint.
Source§impl App
impl App
Sourcepub fn fetch_tag_hints(&mut self)
pub fn fetch_tag_hints(&mut self)
Asks for the lookup the open form’s focused tag cell needs.
Source§impl App
impl App
Sourcepub fn confirm_delete_tag(&mut self, tag: TagRow)
pub fn confirm_delete_tag(&mut self, tag: TagRow)
Asks before deleting tag with every link to it.
Source§impl App
impl App
Sourcepub fn pick_template(&mut self)
pub fn pick_template(&mut self)
Asks for the templates to pick from.
Sourcepub fn load_from_template(&mut self, values: &FormValues)
pub fn load_from_template(&mut self, values: &FormValues)
Loads the draft of the picked template; the form opens when it arrives.
Source§impl App
impl App
Sourcepub fn test_selected_template(&mut self)
pub fn test_selected_template(&mut self)
Tests the stored source of the selected template.
Sourcepub fn test_template_form(&mut self)
pub fn test_template_form(&mut self)
Tests the source being edited in the open template form.
Source§impl App
impl App
pub fn fetch_templates(&mut self, window: WindowId)
Sourcepub fn confirm_delete_template(&mut self, template: TemplateRow)
pub fn confirm_delete_template(&mut self, template: TemplateRow)
Asks before deleting template.
Source§impl App
impl App
Sourcepub fn front_window(&self) -> Option<WindowId>
pub fn front_window(&self) -> Option<WindowId>
The id of the front window.
Sourcepub fn front<T: Pane>(&self) -> Option<&T>
pub fn front<T: Pane>(&self) -> Option<&T>
The T the front window shows; user actions go through it.
pub fn front_mut<T: Pane>(&mut self) -> Option<&mut T>
pub fn win_mut<T: Pane>(&mut self, id: WindowId) -> Option<&mut T>
Sourcepub fn window_id(&self, kind: ViewId) -> Option<WindowId>
pub fn window_id(&self, kind: ViewId) -> Option<WindowId>
The id of the front-most window of kind.
Sourcepub fn front_kind(&self) -> Option<ViewId>
pub fn front_kind(&self) -> Option<ViewId>
The kind of the front window.
pub fn front_is(&self, kind: ViewId) -> bool
Sourcepub fn visible_windows(&self, area: Rect) -> Vec<(WindowId, &View, Place)>
pub fn visible_windows(&self, area: Rect) -> Vec<(WindowId, &View, Place)>
The windows to draw inside area, back to front, without those fully covered.
Sourcepub fn frame_state(&self, id: WindowId) -> FrameState
pub fn frame_state(&self, id: WindowId) -> FrameState
The frame of window id: dragging while it is moved or sized, else active when it is the front one, numbered by its own number.
Sourcepub fn console_input_focused(&self) -> bool
pub fn console_input_focused(&self) -> bool
Whether the front window is a console whose prompt has the keyboard.
Sourcepub fn active_view(&self) -> Option<&View>
pub fn active_view(&self) -> Option<&View>
The front window’s view.
pub fn active_view_mut(&mut self) -> Option<&mut View>
Sourcepub fn front_list(&self, kind: ViewId) -> Option<&ListTab>
pub fn front_list(&self, kind: ViewId) -> Option<&ListTab>
The list the front window shows when it shows kind.
Sourcepub fn window_view(&self, id: WindowId) -> Option<ViewId>
pub fn window_view(&self, id: WindowId) -> Option<ViewId>
The view kind window id shows, or None once the window is gone.
Sourcepub fn last_report(&self, window: WindowId) -> Option<(ReportKind, FormValues)>
pub fn last_report(&self, window: WindowId) -> Option<(ReportKind, FormValues)>
The last report run in Reports window window and its values.
Sourcepub fn selected_id(&self, kind: ViewId) -> Option<String>
pub fn selected_id(&self, kind: ViewId) -> Option<String>
The selected row id of the front window’s list, when it shows kind.
Source§impl App
impl App
Sourcepub fn new(
user_id: Uuid,
cli: CliConfig,
auto_depth: ColorDepth,
) -> Result<Self, String>
pub fn new( user_id: Uuid, cli: CliConfig, auto_depth: ColorDepth, ) -> Result<Self, String>
The app with the theme and keymap the command line chose; auto_depth is what auto colours mean.
§Errors
The message of a command-line theme or a keymap preset that does not build.
pub fn switch_tab(&mut self, tab: Tab)
pub fn open_command_line(&mut self)
pub fn close_command_line(&mut self)
pub fn set_status(&mut self, msg: impl Into<String>)
pub fn clear_status(&mut self)
pub fn confirm_quit(&mut self)
pub fn request_quit(&mut self)
Sourcepub fn attach_console(&mut self, eval: ConsoleEval)
pub fn attach_console(&mut self, eval: ConsoleEval)
Attaches the console and reads the UI config.
Auto Trait Implementations§
impl !Freeze for App
impl !RefUnwindSafe for App
impl !Sync for App
impl !UnwindSafe for App
impl Send for App
impl Unpin for App
impl UnsafeUnpin for App
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
replaced by palette::chromatic_adaptation::AdaptIntoUnclamped
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
replaced by palette::chromatic_adaptation::AdaptIntoUnclamped
Source§impl<T, C> AdaptIntoUnclamped<T> for Cwhere
T: AdaptFromUnclamped<C>,
impl<T, C> AdaptIntoUnclamped<T> for Cwhere
T: AdaptFromUnclamped<C>,
Source§type Scalar = <T as AdaptFromUnclamped<C>>::Scalar
type Scalar = <T as AdaptFromUnclamped<C>>::Scalar
Source§fn adapt_into_unclamped_with<M>(self) -> Twhere
M: LmsToXyz<<C as AdaptIntoUnclamped<T>>::Scalar> + XyzToLms<<C as AdaptIntoUnclamped<T>>::Scalar>,
fn adapt_into_unclamped_with<M>(self) -> Twhere
M: LmsToXyz<<C as AdaptIntoUnclamped<T>>::Scalar> + XyzToLms<<C as AdaptIntoUnclamped<T>>::Scalar>,
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
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
Source§impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self to use its Binary implementation when Debug-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self to use its Display implementation when
Debug-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self to use its LowerExp implementation when
Debug-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self to use its LowerHex implementation when
Debug-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self to use its Octal implementation when Debug-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self to use its Pointer implementation when
Debug-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self to use its UpperExp implementation when
Debug-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self to use its UpperHex implementation when
Debug-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other into Self, while performing the appropriate scaling,
rounding and clamping.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
T.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
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<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self into T, while performing the appropriate scaling,
rounding and clamping.§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
§impl<T> TryConv for T
impl<T> TryConv for T
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more