Skip to main content

App

Struct App 

Source
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: CmdLine§menu: Option<(MenuId, usize)>

The open menu and its selected entry; None while it is closed.

§menu_window: RowWindow

Which entries of the open menu are in view.

§hits: Hits

The clickable areas of the last frame drawn.

§keys: Keys§status: String§should_quit: bool§local_files: bool

Whether the transport runs on the user’s machine, so saving a file is allowed.

Implementations§

Source§

impl App

Source

pub fn show_account_balance(&mut self, input: &str)

Print the balances of the account input names, by label or id.

Source§

impl App

Source

pub fn open_delete_marked(&mut self)

Source§

impl App

Source

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

Source

pub fn open_transaction_detail_selected(&mut self)

Dispatch the detail request of the selected transaction.

Source§

impl App

Source

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.

Source

pub fn open_account_edit_async(&mut self, id: &str)

Dispatch (load-form "account-edit" "<id>") with RouteCtx::AccountEdit.

Source

pub fn open_commodity_edit_async(&mut self, id: &str)

Dispatch (load-form "commodity-edit" "<id>") with RouteCtx::CommodityEdit.

Source

pub fn open_tag_edit_async(&mut self, id: &str)

Dispatch (load-form "tag-edit" "<id>") with RouteCtx::TagEdit.

Source

pub fn open_template_edit_async(&mut self, id: &str)

Dispatch (load-form "template-edit" "<id>") with TemplateRoute::Edit.

Source

pub fn open_script_edit_async(&mut self, id: &str)

Dispatch (load-form "script-edit" "<id>") with ScriptRoute::Edit.

Source

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

Source

pub fn submit_console_form(&mut self, console: WindowId, form: String)

Source

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.

Source

pub fn interrupt_console(&mut self)

Aborts what the front console is evaluating.

Source

pub fn drain_eval(&mut self) -> bool

Applies every ready reply; true when there was one, so the screen is stale.

Source

pub fn fetch_config(&mut self, window: WindowId)

Source

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

Source

pub fn filter_transactions(&mut self, filter: FormValues)

Filter the Transactions tab by filter, whose account may be a label.

Source

pub fn show_all_transactions(&mut self)

Drop the Transactions filter and show the window.

Source

pub fn filter_transactions_of_selected_account(&mut self)

Filter the Transactions tab by the account selected on the Accounts tab.

Source§

impl App

Source

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.

Source

pub fn fetch_commodity_form_options(&mut self)

Issue a form-options fetch for the commodity selects of the open report or convert form.

Source

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.

Source

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

Source

pub fn menu_entries(&self) -> Vec<MenuEntry>

The entries of the open menu, the View’s when none is open.

Source

pub fn menu_title(&self) -> Option<MenuId>

The open menu.

Source

pub fn menu_item(&self) -> Option<usize>

The selected entry of the open menu, kept on the last one when the list has shrunk.

Source

pub fn open_menu(&mut self)

Opens the View menu on the active view.

Source

pub fn open_menu_of(&mut self, menu: MenuId)

Opens menu: the View on the active view, the Window on its first entry.

Source

pub fn close_menu(&mut self)

Source

pub fn menu_right(&mut self)

Opens the menu to the right of the open one, wrapping.

Source

pub fn menu_left(&mut self)

Source

pub fn select_menu_item(&mut self, at: usize)

Selects entry at of the open menu.

Source

pub fn menu_next(&mut self)

Source

pub fn menu_prev(&mut self)

Source

pub fn menu_first(&mut self)

Source

pub fn menu_last(&mut self)

Source

pub fn menu_choice(&self) -> Option<Intent>

The intent of the selected entry; None when it is disabled or no menu is open.

Source

pub fn menu_mnemonic(&self, key: KeyEvent) -> Option<usize>

The entry whose mnemonic letter or shown key key types; any other key names none.

Source§

impl App

Source

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

Source

pub fn submit_delete_transaction(&mut self, id: &str) -> Option<i64>

Source

pub fn submit_add_ssh_key(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_remove_ssh_key(&mut self, fingerprint: String)

Source

pub fn submit_tag_create(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_tag_edit(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_delete_tag(&mut self, id: &str, label: String)

Source

pub fn submit_template_create(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_template_edit(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_script_create(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_script_edit(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_delete_script(&mut self, id: &str, label: String)

Source

pub fn submit_delete_template(&mut self, id: &str, label: String)

Source

pub fn submit_commodity_create(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_commodity_edit(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_config_set(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_account_create(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_account_edit(&mut self, values: &FormValues) -> Option<i64>

Source

pub fn submit_account_merge(&mut self, values: &FormValues) -> Option<i64>

Source

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.

Source

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.

Source

pub fn submit_transaction( &mut self, descriptor: &Form, values: &FormValues, ) -> Option<i64>

Submit a transaction-create or transaction-edit form.

Source§

impl App

Source

pub fn page_transactions(&mut self, forward: bool)

Fetch the next or previous page of the Transactions tab.

Source

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

Source

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

Source

pub fn run_report_request(&mut self, req: ReportRequest)

Run a palette report, after resolving its typed select values.

Source§

impl App

Source

pub fn toggle_report_chart(&mut self)

Switch between the table and the chart of the shown report.

Source

pub fn sync_terminal(&mut self, env: TerminalEnv)

Adopt the terminal’s geometry; a changed one draws every shown chart again.

Source§

impl App

Source

pub fn request_report_csv(&mut self)

Ask for the CSV of the shown category report.

Source

pub fn copy_csv(&mut self)

Queue the shown CSV for the clipboard of the terminal.

Source

pub fn take_outbound(&mut self) -> Vec<Vec<u8>>

The raw terminal output queued since the last call.

Source

pub fn begin_csv_save(&mut self)

Open the save-path prompt; saving files is for the local transport only.

Source§

impl App

Source

pub fn edit_last_report(&mut self)

Reopen the last report’s form prefilled with its stored values.

Source

pub fn new_report(&mut self, kind: ReportKind)

Source§

impl App

Source

pub fn fetch_scripts(&mut self, window: WindowId)

Source

pub fn confirm_delete_script(&mut self, script: ScriptRow)

Asks before deleting script.

Source

pub fn toggle_script(&mut self, script: &ScriptRow)

Loads script for its revision, then saves it with the other state.

Source§

impl App

Source

pub fn fetch_ssh_keys(&mut self, window: WindowId)

Source

pub fn confirm_remove_ssh_key(&mut self, fingerprint: String)

Asks before removing the key fingerprint.

Source§

impl App

Source

pub fn fetch_tag_hints(&mut self)

Asks for the lookup the open form’s focused tag cell needs.

Source§

impl App

Source

pub fn fetch_tags(&mut self, window: WindowId)

Source

pub fn confirm_delete_tag(&mut self, tag: TagRow)

Asks before deleting tag with every link to it.

Source§

impl App

Source

pub fn pick_template(&mut self)

Asks for the templates to pick from.

Source

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

Source

pub fn test_selected_template(&mut self)

Tests the stored source of the selected template.

Source

pub fn test_template_form(&mut self)

Tests the source being edited in the open template form.

Source§

impl App

Source

pub fn fetch_templates(&mut self, window: WindowId)

Source

pub fn confirm_delete_template(&mut self, template: TemplateRow)

Asks before deleting template.

Source§

impl App

Source

pub fn front_window(&self) -> Option<WindowId>

The id of the front window.

Source

pub fn front<T: Pane>(&self) -> Option<&T>

The T the front window shows; user actions go through it.

Source

pub fn front_mut<T: Pane>(&mut self) -> Option<&mut T>

Source

pub fn win<T: Pane>(&self, id: WindowId) -> Option<&T>

The T shown by window id.

Source

pub fn win_mut<T: Pane>(&mut self, id: WindowId) -> Option<&mut T>

Source

pub fn window_id(&self, kind: ViewId) -> Option<WindowId>

The id of the front-most window of kind.

Source

pub fn front_kind(&self) -> Option<ViewId>

The kind of the front window.

Source

pub fn front_is(&self, kind: ViewId) -> bool

Source

pub fn visible_windows(&self, area: Rect) -> Vec<(WindowId, &View, Place)>

The windows to draw inside area, back to front, without those fully covered.

Source

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.

Source

pub fn console_input_focused(&self) -> bool

Whether the front window is a console whose prompt has the keyboard.

Source

pub fn active_view(&self) -> Option<&View>

The front window’s view.

Source

pub fn active_view_mut(&mut self) -> Option<&mut View>

Source

pub fn front_list(&self, kind: ViewId) -> Option<&ListTab>

The list the front window shows when it shows kind.

Source

pub fn window_view(&self, id: WindowId) -> Option<ViewId>

The view kind window id shows, or None once the window is gone.

Source

pub fn last_report(&self, window: WindowId) -> Option<(ReportKind, FormValues)>

The last report run in Reports window window and its values.

Source

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

Source

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.

Source

pub fn switch_tab(&mut self, tab: Tab)

Source

pub fn open_command_line(&mut self)

Source

pub fn close_command_line(&mut self)

Source

pub fn set_status(&mut self, msg: impl Into<String>)

Source

pub fn clear_status(&mut self)

Source

pub fn confirm_quit(&mut self)

Source

pub fn request_quit(&mut self)

Source

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 S
where 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) -> D
where M: TransformMatrix<T>,

👎Deprecated since 0.7.7:

replaced by palette::chromatic_adaptation::AdaptIntoUnclamped

Convert the source color to the destination color using the specified method.
Source§

fn adapt_into(self) -> D

👎Deprecated since 0.7.7:

replaced by palette::chromatic_adaptation::AdaptIntoUnclamped

Convert the source color to the destination color using the bradford method by default.
Source§

impl<T, C> AdaptIntoUnclamped<T> for C
where T: AdaptFromUnclamped<C>,

Source§

type Scalar = <T as AdaptFromUnclamped<C>>::Scalar

The number type that’s used as the color’s components.
Source§

fn adapt_into_unclamped_with<M>(self) -> T

Adapt a color of type Self into a color of type T, using the custom matrix M. Read more
Source§

fn adapt_into_unclamped(self) -> T
where Bradford: LmsToXyz<Self::Scalar> + XyzToLms<Self::Scalar>,

Adapt a color of type Self into a color of type T, using the Bradford matrix. Read more
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T, C> ArraysFrom<C> for T
where C: IntoArrays<T>,

Source§

fn arrays_from(colors: C) -> T

Cast a collection of colors into a collection of arrays.
Source§

impl<T, C> ArraysInto<C> for T
where C: FromArrays<T>,

Source§

fn arrays_into(self) -> C

Cast this collection of arrays into a collection of colors.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for U
where T: FromCam16Unclamped<WpParam, U>,

Source§

type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T, C> ComponentsFrom<C> for T
where C: IntoComponents<T>,

Source§

fn components_from(colors: C) -> T

Cast a collection of colors into a collection of color components.
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromAngle<T> for T

Source§

fn from_angle(angle: T) -> T

Performs a conversion from angle.
Source§

impl<T, U> FromStimulus<U> for T
where U: IntoStimulus<T>,

Source§

fn from_stimulus(other: U) -> T

Converts other into Self, while performing the appropriate scaling, rounding and clamping.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> IntoAngle<U> for T
where U: FromAngle<T>,

Source§

fn into_angle(self) -> U

Performs a conversion into T.
Source§

impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for U
where T: Cam16FromUnclamped<WpParam, U>,

Source§

type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar

The number type that’s used in parameters when converting.
Source§

fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T

Converts self into C, using the provided parameters.
Source§

impl<T, U> IntoColor<U> for T
where U: FromColor<T>,

Source§

fn into_color(self) -> U

Convert into T with values clamped to the color defined bounds Read more
Source§

impl<T, U> IntoColorUnclamped<U> for T
where U: FromColorUnclamped<T>,

Source§

fn into_color_unclamped(self) -> U

Convert into T. The resulting color might be invalid in its color space Read more
Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> IntoStimulus<T> for T

Source§

fn into_stimulus(self) -> T

Converts self into T, while performing the appropriate scaling, rounding and clamping.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows 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) -> R
where R: 'a,

Mutably borrows 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
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows 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
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows 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
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .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
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .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
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
Source§

impl<T, C> TryComponentsInto<C> for T
where C: TryFromComponents<T>,

Source§

type Error = <C as TryFromComponents<T>>::Error

The error for when try_into_colors fails to cast.
Source§

fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>

Try to cast this collection of color components into a collection of colors. Read more
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> TryIntoColor<U> for T
where U: TryFromColor<T>,

Source§

fn try_into_color(self) -> Result<U, OutOfBounds<U>>

Convert into T, returning ok if the color is inside of its defined range, otherwise an OutOfBounds error is returned which contains the unclamped color. Read more
Source§

impl<C, U> UintsFrom<C> for U
where C: IntoUints<U>,

Source§

fn uints_from(colors: C) -> U

Cast a collection of colors into a collection of unsigned integers.
Source§

impl<C, U> UintsInto<C> for U
where C: FromUints<U>,

Source§

fn uints_into(self) -> C

Cast this collection of unsigned integers into a collection of colors.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more