pub struct Form {
pub fields: Vec<Field>,
pub focus: usize,
pub kind: FormKind,
pub hidden: Vec<(&'static str, String)>,
pub errors: Vec<String>,
pub notices: Vec<String>,
pub baseline: Option<FormValues>,
pub hints: Hints,
pub completing: Option<(String, String)>,
pub origin: Option<Origin>,
pub placement: Placement,
}Expand description
A generic multi-field input form.
Fields§
§fields: Vec<Field>§focus: usizeThe stop of the focus ring: a field, or past the last field one of the form’s buttons.
kind: FormKindDescriptor hidden fields: carried to the submit, never rendered.
errors: Vec<String>Server rejection messages shown below the fields after an unlock.
notices: Vec<String>Server notes about the loaded entity, shown above the fields.
baseline: Option<FormValues>Values the form was opened with, taken when it joins the overlay stack.
hints: HintsAnswers to the tag name and value lookups, kept for the form’s lifetime.
completing: Option<(String, String)>The text typed before the current run of completions, and the last one filled.
origin: Option<Origin>The window the form’s dialog started from; it travels with the form while the stack is empty, between submit and reply.
placement: PlacementWhere the user moved or sized the dialog; it travels with the form through submit and reopen.
Implementations§
Source§impl Form
impl Form
Sourcepub fn load(&mut self, loaded: &FormValues)
pub fn load(&mut self, loaded: &FormValues)
Replaces the widgets’ and hidden fields’ contents with loaded; keys
the payload does not hold keep their empty value.
Sourcepub fn rebaseline(&mut self)
pub fn rebaseline(&mut self)
Takes the current values as the clean state.
pub fn is_template(&self) -> bool
pub fn is_transaction(&self) -> bool
Sourcepub fn values(&self) -> FormValues
pub fn values(&self) -> FormValues
The raw values of a descriptor form, hidden ones included; empty cells are left out so the server reports a missing required value by address.
Sourcepub fn preselect_account(&mut self, key: &str, id: &str)
pub fn preselect_account(&mut self, key: &str, id: &str)
Select id in the account select key; kept until the options arrive.
Sourcepub fn preselect_from_account(&mut self, id: &str)
pub fn preselect_from_account(&mut self, id: &str)
Select id as the first split row’s From account.
Sourcepub fn show_errors(&mut self, errors: &[FieldError])
pub fn show_errors(&mut self, errors: &[FieldError])
Lists every rejection with its address translated to labels and focuses the first one that points at a field or a cell.
Sourcepub fn is_stale(&self, errors: &[FieldError]) -> bool
pub fn is_stale(&self, errors: &[FieldError]) -> bool
Whether a rejection says the loaded entry changed on the server: it is
addressed to the hidden revision field, which has nothing to focus.
Source§impl Form
impl Form
Sourcepub fn filter_text(&self) -> Option<String>
pub fn filter_text(&self) -> Option<String>
The text of the focused filter field or filter cell; None elsewhere.
Sourcepub fn set_filter_text(&mut self, text: &str)
pub fn set_filter_text(&mut self, text: &str)
Replaces the text Self::filter_text reads.
Source§impl Form
impl Form
Sourcepub fn filter_add() -> Self
pub fn filter_add() -> Self
The picker of what a new builder row is.
Sourcepub fn filter_row(
shape: RowShape,
values: &FormValues,
options: &[SelectOption],
) -> Self
pub fn filter_row( shape: RowShape, values: &FormValues, options: &[SelectOption], ) -> Self
A builder row’s form over values; an id of the row the options do
not know stays pickable.
Sourcepub fn refresh_picks(&mut self, options: &[SelectOption])
pub fn refresh_picks(&mut self, options: &[SelectOption])
Replaces the names the id pick offers, keeping what is picked.
Source§impl Form
impl Form
Sourcepub fn options(shown: &FormValues) -> Self
pub fn options(shown: &FormValues) -> Self
The Options dialog showing shown, the settings by their form keys.
Sourcepub fn lock_choice(&mut self, key: &str, id: &str, flag: &str)
pub fn lock_choice(&mut self, key: &str, id: &str, flag: &str)
Makes the select key offer only id, marked as set by flag.
The buttons the dialog has: the Options dialog’s own three, else OK and Close.
Source§impl Form
impl Form
Sourcepub fn focus_cell(&mut self, field: usize, cell: CellId)
pub fn focus_cell(&mut self, field: usize, cell: CellId)
Focuses cell of the grid in field field; a field that is not a grid changes nothing.
Sourcepub fn place_caret(&mut self, area: Rect, point: Position)
pub fn place_caret(&mut self, area: Rect, point: Position)
Puts the caret of the focused text where a click at point landed in area, the area its
text was drawn in through the editor’s scroll.
Sourcepub fn cell_focused(&self, field: usize, cell: CellId) -> bool
pub fn cell_focused(&self, field: usize, cell: CellId) -> bool
Whether the focus is on cell of the grid in field field.
Source§impl Form
impl Form
Sourcepub fn wanted_hint(&self) -> Option<Hint>
pub fn wanted_hint(&self) -> Option<Hint>
The lookup the focused cell needs, if not asked yet.
pub fn hint_asked(&mut self, hint: &Hint, seq: u64)
Sourcepub fn hint_arrived(&mut self, hint: &Hint, seq: u64, strings: Vec<String>)
pub fn hint_arrived(&mut self, hint: &Hint, seq: u64, strings: Vec<String>)
Keeps the answer unless a newer request for its source superseded seq.
Sourcepub fn candidates(&self) -> Vec<&str>
pub fn candidates(&self) -> Vec<&str>
The suggestions that fit the focused cell as typed.
Sourcepub fn suggestion_line(&self, key: Option<String>) -> Option<String>
pub fn suggestion_line(&self, key: Option<String>) -> Option<String>
The suggestion line under the focused list, empty when nothing fits; key fills the cell.
Sourcepub fn complete_hint(&mut self)
pub fn complete_hint(&mut self)
Fills the focused cell with its next suggestion; repeated presses cycle through those matching what was typed before the first.
Source§impl Form
impl Form
Sourcepub fn config_set() -> Self
pub fn config_set() -> Self
The config-set form: a key and a value.
Sourcepub fn ssh_key_add() -> Self
pub fn ssh_key_add() -> Self
The ssh-key-add form: a public key line and an optional label.
Sourcepub fn report(kind: ReportKind, prefill: &FormValues) -> Self
pub fn report(kind: ReportKind, prefill: &FormValues) -> Self
A report’s setup form from its descriptor: dates blank and the other
fields at their defaults unless prefill holds them.
Sourcepub fn commodity_create() -> Self
pub fn commodity_create() -> Self
The commodity-create form: symbol and name.
Sourcepub fn commodity_convert() -> Self
pub fn commodity_convert() -> Self
The convert form: amount and two commodity selects, filled from form-options.
Sourcepub fn account_create() -> Self
pub fn account_create() -> Self
The account-create form: a name and a parent select.
Sourcepub fn transaction_create() -> Self
pub fn transaction_create() -> Self
Transaction create form built from the shared descriptor: date, note, splits.
Sourcepub fn account_merge() -> Self
pub fn account_merge() -> Self
The account-merge form: two account selects.
Sourcepub fn transaction_filter(filter: &FormValues) -> Self
pub fn transaction_filter(filter: &FormValues) -> Self
The Transactions tab filter form, prefilled with the active filter.
Sourcepub fn select_label(&self, key: &str) -> Option<&str>
pub fn select_label(&self, key: &str) -> Option<&str>
The label the select field key shows.
Sourcepub fn tag_create() -> Self
pub fn tag_create() -> Self
The tag-create form from the shared descriptor.
Sourcepub fn tag_edit(loaded: &FormValues) -> Self
pub fn tag_edit(loaded: &FormValues) -> Self
Tag edit form built from the shared descriptor and the values
load-form returned. Hidden values ride along unrendered.
Sourcepub fn template_create() -> Self
pub fn template_create() -> Self
The template-create form from the shared descriptor.
Sourcepub fn template_edit(loaded: &FormValues) -> Self
pub fn template_edit(loaded: &FormValues) -> Self
Template edit form built from the shared descriptor and the values
load-form returned. Hidden values ride along unrendered.
Sourcepub fn template_pick(options: &[SelectOption]) -> Self
pub fn template_pick(options: &[SelectOption]) -> Self
The template picker over options.
Sourcepub fn transaction_from_template(loaded: &FormValues) -> Self
pub fn transaction_from_template(loaded: &FormValues) -> Self
Transaction create form filled from the load-form draft of a template.
Sourcepub fn script_create() -> Self
pub fn script_create() -> Self
The script-create form from the shared descriptor.
Sourcepub fn script_edit(loaded: &FormValues) -> Self
pub fn script_edit(loaded: &FormValues) -> Self
Script edit form built from the shared descriptor and the values
load-form returned. Hidden values ride along unrendered.
Sourcepub fn transaction_edit(loaded: &FormValues) -> Self
pub fn transaction_edit(loaded: &FormValues) -> Self
Transaction edit form built from the shared descriptor and the values
load-form returned. Hidden values ride along unrendered.
Sourcepub fn account_edit(loaded: &FormValues) -> Self
pub fn account_edit(loaded: &FormValues) -> Self
Account edit form built from the shared descriptor and the values
load-form returned. Hidden values ride along unrendered.
Sourcepub fn commodity_edit(loaded: &FormValues) -> Self
pub fn commodity_edit(loaded: &FormValues) -> Self
Commodity edit form built from the shared descriptor and the values
load-form returned. Hidden values ride along unrendered.
Closes the open split tag list; false when none was open.
Sourcepub fn close_select(&mut self) -> bool
pub fn close_select(&mut self) -> bool
Closes the focused select’s open list; false when none was open.
Sourcepub fn focused_select(&self) -> Option<&SelectWidget>
pub fn focused_select(&self) -> Option<&SelectWidget>
The select the focus is on: the field itself or the focused cell of a grid.
pub fn focused_select_mut(&mut self) -> Option<&mut SelectWidget>
Sourcepub fn cycle(&mut self, forward: bool)
pub fn cycle(&mut self, forward: bool)
Advance or retreat focus by one step through the fields, then the buttons, wrapping.
Sourcepub fn focus_field(&mut self, index: usize)
pub fn focus_field(&mut self, index: usize)
Focuses field index; an index past the fields changes nothing.
The index of the focused button when the focus is on the buttons.
Sourcepub fn focused_field_mut(&mut self) -> Option<&mut Field>
pub fn focused_field_mut(&mut self) -> Option<&mut Field>
Mutable reference to the currently focused field, if any.
Sourcepub fn focused_editor_mut(&mut self) -> Option<&mut Editor>
pub fn focused_editor_mut(&mut self) -> Option<&mut Editor>
Mutable reference to the inner Editor of the focused field.
Returns None when the form is empty or the focused widget is not
Text, Amount, or Date (i.e. a Select or Splits).
Sourcepub fn focused_widget_kind(&self) -> Option<WidgetKind>
pub fn focused_widget_kind(&self) -> Option<WidgetKind>
Widget kind of the focused field, or None when the form is empty.
Sourcepub fn focused_cells_boundary(&self) -> Option<(bool, bool)>
pub fn focused_cells_boundary(&self) -> Option<(bool, bool)>
When the focused field is a Splits or Rows widget, returns (at_first_cell, at_last_cell); Tab/BackTab yield to the field cycle at those edges.
Sourcepub fn focused_vertical_boundary(&self) -> Option<(bool, bool)>
pub fn focused_vertical_boundary(&self) -> Option<(bool, bool)>
(at_first_row, at_last_row) of the focused grid or text area, where Up/Down yield
to the field cycle; None where Up/Down step nothing of the form (a field, a button).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Form
impl !Sync for Form
impl Freeze for Form
impl Send for Form
impl Unpin for Form
impl UnsafeUnpin for Form
impl UnwindSafe for Form
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