Skip to main content

ThemeColors

Struct ThemeColors 

Source
pub struct ThemeColors {
Show 137 fields pub border: Hsla, pub border_variant: Hsla, pub border_focused: Hsla, pub border_selected: Hsla, pub border_transparent: Hsla, pub border_disabled: Hsla, pub elevated_surface_background: Hsla, pub surface_background: Hsla, pub background: Hsla, pub element_background: Hsla, pub element_hover: Hsla, pub element_active: Hsla, pub element_selected: Hsla, pub element_selection_background: Hsla, pub element_disabled: Hsla, pub drop_target_background: Hsla, pub drop_target_border: Hsla, pub ghost_element_background: Hsla, pub ghost_element_hover: Hsla, pub ghost_element_active: Hsla, pub ghost_element_selected: Hsla, pub ghost_element_disabled: Hsla, pub text: Hsla, pub text_muted: Hsla, pub text_placeholder: Hsla, pub text_disabled: Hsla, pub text_accent: Hsla, pub icon: Hsla, pub icon_muted: Hsla, pub icon_disabled: Hsla, pub icon_placeholder: Hsla, pub icon_accent: Hsla, pub debugger_accent: Hsla, pub status_bar_background: Hsla, pub title_bar_background: Hsla, pub title_bar_inactive_background: Hsla, pub toolbar_background: Hsla, pub tab_bar_background: Hsla, pub tab_inactive_background: Hsla, pub tab_active_background: Hsla, pub search_match_background: Hsla, pub search_active_match_background: Hsla, pub panel_background: Hsla, pub panel_focused_border: Hsla, pub panel_indent_guide: Hsla, pub panel_indent_guide_hover: Hsla, pub panel_indent_guide_active: Hsla, pub panel_overlay_background: Hsla, pub panel_overlay_hover: Hsla, pub pane_focused_border: Hsla, pub pane_group_border: Hsla, pub scrollbar_thumb_background: Hsla, pub scrollbar_thumb_hover_background: Hsla, pub scrollbar_thumb_active_background: Hsla, pub scrollbar_thumb_border: Hsla, pub scrollbar_track_background: Hsla, pub scrollbar_track_border: Hsla, pub minimap_thumb_background: Hsla, pub minimap_thumb_hover_background: Hsla, pub minimap_thumb_active_background: Hsla, pub minimap_thumb_border: Hsla, pub vim_normal_background: Hsla, pub vim_insert_background: Hsla, pub vim_replace_background: Hsla, pub vim_visual_background: Hsla, pub vim_visual_line_background: Hsla, pub vim_visual_block_background: Hsla, pub vim_yank_background: Hsla, pub vim_helix_jump_label_foreground: Hsla, pub vim_helix_normal_background: Hsla, pub vim_helix_select_background: Hsla, pub vim_normal_foreground: Hsla, pub vim_insert_foreground: Hsla, pub vim_replace_foreground: Hsla, pub vim_visual_foreground: Hsla, pub vim_visual_line_foreground: Hsla, pub vim_visual_block_foreground: Hsla, pub vim_helix_normal_foreground: Hsla, pub vim_helix_select_foreground: Hsla, pub editor_foreground: Hsla, pub editor_background: Hsla, pub editor_gutter_background: Hsla, pub editor_subheader_background: Hsla, pub editor_active_line_background: Hsla, pub editor_highlighted_line_background: Hsla, pub editor_debugger_active_line_background: Hsla, pub editor_line_number: Hsla, pub editor_active_line_number: Hsla, pub editor_hover_line_number: Hsla, pub editor_invisible: Hsla, pub editor_wrap_guide: Hsla, pub editor_active_wrap_guide: Hsla, pub editor_indent_guide: Hsla, pub editor_indent_guide_active: Hsla, pub editor_document_highlight_read_background: Hsla, pub editor_document_highlight_write_background: Hsla, pub editor_document_highlight_bracket_background: Hsla, pub terminal_background: Hsla, pub terminal_foreground: Hsla, pub terminal_bright_foreground: Hsla, pub terminal_dim_foreground: Hsla, pub terminal_ansi_background: Hsla, pub terminal_ansi_black: Hsla, pub terminal_ansi_bright_black: Hsla, pub terminal_ansi_dim_black: Hsla, pub terminal_ansi_red: Hsla, pub terminal_ansi_bright_red: Hsla, pub terminal_ansi_dim_red: Hsla, pub terminal_ansi_green: Hsla, pub terminal_ansi_bright_green: Hsla, pub terminal_ansi_dim_green: Hsla, pub terminal_ansi_yellow: Hsla, pub terminal_ansi_bright_yellow: Hsla, pub terminal_ansi_dim_yellow: Hsla, pub terminal_ansi_blue: Hsla, pub terminal_ansi_bright_blue: Hsla, pub terminal_ansi_dim_blue: Hsla, pub terminal_ansi_magenta: Hsla, pub terminal_ansi_bright_magenta: Hsla, pub terminal_ansi_dim_magenta: Hsla, pub terminal_ansi_cyan: Hsla, pub terminal_ansi_bright_cyan: Hsla, pub terminal_ansi_dim_cyan: Hsla, pub terminal_ansi_white: Hsla, pub terminal_ansi_bright_white: Hsla, pub terminal_ansi_dim_white: Hsla, pub link_text_hover: Hsla, pub version_control_added: Hsla, pub version_control_deleted: Hsla, pub version_control_modified: Hsla, pub version_control_renamed: Hsla, pub version_control_conflict: Hsla, pub version_control_ignored: Hsla, pub version_control_word_added: Hsla, pub version_control_word_deleted: Hsla, pub version_control_conflict_marker_ours: Hsla, pub version_control_conflict_marker_theirs: Hsla,
}

Fields§

§border: Hsla

Border color. Used for most borders, is usually a high contrast color.

§border_variant: Hsla

Border color. Used for deemphasized borders, like a visual divider between two sections

§border_focused: Hsla

Border color. Used for focused elements, like keyboard focused list item.

§border_selected: Hsla

Border color. Used for selected elements, like an active search filter or selected checkbox.

§border_transparent: Hsla

Border color. Used for transparent borders. Used for placeholder borders when an element gains a border on state change.

§border_disabled: Hsla

Border color. Used for disabled elements, like a disabled input or button.

§elevated_surface_background: Hsla

Border color. Used for elevated surfaces, like a context menu, popup, or dialog.

§surface_background: Hsla

Background Color. Used for grounded surfaces like a panel or tab.

§background: Hsla

Background Color. Used for the app background and blank panels or windows.

§element_background: Hsla

Background Color. Used for the background of an element that should have a different background than the surface it’s on.

Elements might include: Buttons, Inputs, Checkboxes, Radio Buttons…

For an element that should have the same background as the surface it’s on, use ghost_element_background.

§element_hover: Hsla

Background Color. Used for the hover state of an element that should have a different background than the surface it’s on.

Hover states are triggered by the mouse entering an element, or a finger touching an element on a touch screen.

§element_active: Hsla

Background Color. Used for the active state of an element that should have a different background than the surface it’s on.

Active states are triggered by the mouse button being pressed down on an element, or the Return button or other activator being pressed.

§element_selected: Hsla

Background Color. Used for the selected state of an element that should have a different background than the surface it’s on.

Selected states are triggered by the element being selected (or “activated”) by the user.

This could include a selected checkbox, a toggleable button that is toggled on, etc.

§element_selection_background: Hsla

Background Color. Used for the background of selections in a UI element.

§element_disabled: Hsla

Background Color. Used for the disabled state of an element that should have a different background than the surface it’s on.

Disabled states are shown when a user cannot interact with an element, like a disabled button or input.

§drop_target_background: Hsla

Background Color. Used for the area that shows where a dragged element will be dropped.

§drop_target_border: Hsla

Border Color. Used for the border that shows where a dragged element will be dropped.

§ghost_element_background: Hsla

Used for the background of a ghost element that should have the same background as the surface it’s on.

Elements might include: Buttons, Inputs, Checkboxes, Radio Buttons…

For an element that should have a different background than the surface it’s on, use element_background.

§ghost_element_hover: Hsla

Background Color. Used for the hover state of a ghost element that should have the same background as the surface it’s on.

Hover states are triggered by the mouse entering an element, or a finger touching an element on a touch screen.

§ghost_element_active: Hsla

Background Color. Used for the active state of a ghost element that should have the same background as the surface it’s on.

Active states are triggered by the mouse button being pressed down on an element, or the Return button or other activator being pressed.

§ghost_element_selected: Hsla

Background Color. Used for the selected state of a ghost element that should have the same background as the surface it’s on.

Selected states are triggered by the element being selected (or “activated”) by the user.

This could include a selected checkbox, a toggleable button that is toggled on, etc.

§ghost_element_disabled: Hsla

Background Color. Used for the disabled state of a ghost element that should have the same background as the surface it’s on.

Disabled states are shown when a user cannot interact with an element, like a disabled button or input.

§text: Hsla

Text Color. Default text color used for most text.

§text_muted: Hsla

Text Color. Color of muted or deemphasized text. It is a subdued version of the standard text color.

§text_placeholder: Hsla

Text Color. Color of the placeholder text typically shown in input fields to guide the user to enter valid data.

§text_disabled: Hsla

Text Color. Color used for text denoting disabled elements. Typically, the color is faded or grayed out to emphasize the disabled state.

§text_accent: Hsla

Text Color. Color used for emphasis or highlighting certain text, like an active filter or a matched character in a search.

§icon: Hsla

Fill Color. Used for the default fill color of an icon.

§icon_muted: Hsla

Fill Color. Used for the muted or deemphasized fill color of an icon.

This might be used to show an icon in an inactive pane, or to deemphasize a series of icons to give them less visual weight.

§icon_disabled: Hsla

Fill Color. Used for the disabled fill color of an icon.

Disabled states are shown when a user cannot interact with an element, like a icon button.

§icon_placeholder: Hsla

Fill Color. Used for the placeholder fill color of an icon.

This might be used to show an icon in an input that disappears when the user enters text.

§icon_accent: Hsla

Fill Color. Used for the accent fill color of an icon.

This might be used to show when a toggleable icon button is selected.

§debugger_accent: Hsla

Color used to accent some debugger elements Is used by breakpoints

§status_bar_background: Hsla§title_bar_background: Hsla§title_bar_inactive_background: Hsla§toolbar_background: Hsla§tab_bar_background: Hsla§tab_inactive_background: Hsla§tab_active_background: Hsla§search_match_background: Hsla§search_active_match_background: Hsla§panel_background: Hsla§panel_focused_border: Hsla§panel_indent_guide: Hsla§panel_indent_guide_hover: Hsla§panel_indent_guide_active: Hsla§panel_overlay_background: Hsla

The color of the overlay surface on top of panel.

§panel_overlay_hover: Hsla

The color of the overlay surface on top of panel when hovered over.

§pane_focused_border: Hsla§pane_group_border: Hsla§scrollbar_thumb_background: Hsla

The color of the scrollbar thumb.

§scrollbar_thumb_hover_background: Hsla

The color of the scrollbar thumb when hovered over.

§scrollbar_thumb_active_background: Hsla

The color of the scrollbar thumb whilst being actively dragged.

§scrollbar_thumb_border: Hsla

The border color of the scrollbar thumb.

§scrollbar_track_background: Hsla

The background color of the scrollbar track.

§scrollbar_track_border: Hsla

The border color of the scrollbar track.

§minimap_thumb_background: Hsla

The color of the minimap thumb.

§minimap_thumb_hover_background: Hsla

The color of the minimap thumb when hovered over.

§minimap_thumb_active_background: Hsla

The color of the minimap thumb whilst being actively dragged.

§minimap_thumb_border: Hsla

The border color of the minimap thumb.

§vim_normal_background: Hsla

Background color for Vim Normal mode indicator.

§vim_insert_background: Hsla

Background color for Vim Insert mode indicator.

§vim_replace_background: Hsla

Background color for Vim Replace mode indicator.

§vim_visual_background: Hsla

Background color for Vim Visual mode indicator.

§vim_visual_line_background: Hsla

Background color for Vim Visual Line mode indicator.

§vim_visual_block_background: Hsla

Background color for Vim Visual Block mode indicator.

§vim_yank_background: Hsla

Background color for Vim yank highlight.

§vim_helix_jump_label_foreground: Hsla

Foreground color for Helix jump labels.

§vim_helix_normal_background: Hsla

Background color for Vim Helix Normal mode indicator.

§vim_helix_select_background: Hsla

Background color for Vim Helix Select mode indicator.

§vim_normal_foreground: Hsla

Foreground color for Vim Normal mode indicator.

§vim_insert_foreground: Hsla

Foreground color for Vim Insert mode indicator.

§vim_replace_foreground: Hsla

Foreground color for Vim Replace mode indicator.

§vim_visual_foreground: Hsla

Foreground color for Vim Visual mode indicator.

§vim_visual_line_foreground: Hsla

Foreground color for Vim Visual Line mode indicator.

§vim_visual_block_foreground: Hsla

Foreground color for Vim Visual Block mode indicator.

§vim_helix_normal_foreground: Hsla

Foreground color for Vim Helix Normal mode indicator.

§vim_helix_select_foreground: Hsla

Foreground color for Vim Helix Select mode indicator.

§editor_foreground: Hsla§editor_background: Hsla§editor_gutter_background: Hsla§editor_subheader_background: Hsla§editor_active_line_background: Hsla§editor_highlighted_line_background: Hsla§editor_debugger_active_line_background: Hsla

Line color of the line a debugger is currently stopped at

§editor_line_number: Hsla

Text Color. Used for the text of the line number in the editor gutter.

§editor_active_line_number: Hsla

Text Color. Used for the text of the line number in the editor gutter when the line is highlighted.

§editor_hover_line_number: Hsla

Text Color. Used for the text of the line number in the editor gutter when the line is hovered over.

§editor_invisible: Hsla

Text Color. Used to mark invisible characters in the editor.

Example: spaces, tabs, carriage returns, etc.

§editor_wrap_guide: Hsla§editor_active_wrap_guide: Hsla§editor_indent_guide: Hsla§editor_indent_guide_active: Hsla§editor_document_highlight_read_background: Hsla

Read-access of a symbol, like reading a variable.

A document highlight is a range inside a text document which deserves special attention. Usually a document highlight is visualized by changing the background color of its range.

§editor_document_highlight_write_background: Hsla

Read-access of a symbol, like reading a variable.

A document highlight is a range inside a text document which deserves special attention. Usually a document highlight is visualized by changing the background color of its range.

§editor_document_highlight_bracket_background: Hsla

Highlighted brackets background color.

Matching brackets in the cursor scope are highlighted with this background color.

§terminal_background: Hsla

Terminal layout background color.

§terminal_foreground: Hsla

Terminal foreground color.

§terminal_bright_foreground: Hsla

Bright terminal foreground color.

§terminal_dim_foreground: Hsla

Dim terminal foreground color.

§terminal_ansi_background: Hsla

Terminal ANSI background color.

§terminal_ansi_black: Hsla

Black ANSI terminal color.

§terminal_ansi_bright_black: Hsla

Bright black ANSI terminal color.

§terminal_ansi_dim_black: Hsla

Dim black ANSI terminal color.

§terminal_ansi_red: Hsla

Red ANSI terminal color.

§terminal_ansi_bright_red: Hsla

Bright red ANSI terminal color.

§terminal_ansi_dim_red: Hsla

Dim red ANSI terminal color.

§terminal_ansi_green: Hsla

Green ANSI terminal color.

§terminal_ansi_bright_green: Hsla

Bright green ANSI terminal color.

§terminal_ansi_dim_green: Hsla

Dim green ANSI terminal color.

§terminal_ansi_yellow: Hsla

Yellow ANSI terminal color.

§terminal_ansi_bright_yellow: Hsla

Bright yellow ANSI terminal color.

§terminal_ansi_dim_yellow: Hsla

Dim yellow ANSI terminal color.

§terminal_ansi_blue: Hsla

Blue ANSI terminal color.

§terminal_ansi_bright_blue: Hsla

Bright blue ANSI terminal color.

§terminal_ansi_dim_blue: Hsla

Dim blue ANSI terminal color.

§terminal_ansi_magenta: Hsla

Magenta ANSI terminal color.

§terminal_ansi_bright_magenta: Hsla

Bright magenta ANSI terminal color.

§terminal_ansi_dim_magenta: Hsla

Dim magenta ANSI terminal color.

§terminal_ansi_cyan: Hsla

Cyan ANSI terminal color.

§terminal_ansi_bright_cyan: Hsla

Bright cyan ANSI terminal color.

§terminal_ansi_dim_cyan: Hsla

Dim cyan ANSI terminal color.

§terminal_ansi_white: Hsla

White ANSI terminal color.

§terminal_ansi_bright_white: Hsla

Bright white ANSI terminal color.

§terminal_ansi_dim_white: Hsla

Dim white ANSI terminal color.

§link_text_hover: Hsla

Represents a link text hover color.

§version_control_added: Hsla

Represents an added entry or hunk in vcs, like git.

§version_control_deleted: Hsla

Represents a deleted entry in version control systems.

§version_control_modified: Hsla

Represents a modified entry in version control systems.

§version_control_renamed: Hsla

Represents a renamed entry in version control systems.

§version_control_conflict: Hsla

Represents a conflicting entry in version control systems.

§version_control_ignored: Hsla

Represents an ignored entry in version control systems.

§version_control_word_added: Hsla

Represents an added word in a word diff.

§version_control_word_deleted: Hsla

Represents a deleted word in a word diff.

§version_control_conflict_marker_ours: Hsla

Represents the “ours” region of a merge conflict.

§version_control_conflict_marker_theirs: Hsla

Represents the “theirs” region of a merge conflict.

Implementations§

Source§

impl ThemeColors

The default colors for the theme.

Themes that do not specify all colors are refined off of these defaults.

Source

pub fn light() -> Self

Returns the default colors for light themes.

Themes that do not specify all colors are refined off of these defaults.

Source

pub fn dark() -> Self

Returns the default colors for dark themes.

Themes that do not specify all colors are refined off of these defaults.

Source§

impl ThemeColors

Source

pub fn color(&self, field: ThemeColorField) -> Hsla

Source

pub fn iter(&self) -> impl Iterator<Item = (ThemeColorField, Hsla)> + '_

Source

pub fn to_vec(&self) -> Vec<(ThemeColorField, Hsla)>

Trait Implementations§

Source§

impl Clone for ThemeColors

Source§

fn clone(&self) -> ThemeColors

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ThemeColors

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ThemeColorsRefinement> for ThemeColors
where Option<Hsla>: Clone,

Source§

fn from(value: ThemeColorsRefinement) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ThemeColors

Source§

fn eq(&self, other: &ThemeColors) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Refineable for ThemeColors
where Option<Hsla>: Clone,

Source§

type Refinement = ThemeColorsRefinement

Source§

fn refine(&mut self, refinement: &Self::Refinement)

Applies the given refinement to this instance, modifying it in place. Read more
Source§

fn refined(self, refinement: Self::Refinement) -> Self

Returns a new instance with the refinement applied, equivalent to cloning self and calling refine on it.
Source§

fn is_superset_of(&self, refinement: &Self::Refinement) -> bool

Returns true if this instance would contain all values from the refinement. Read more
Source§

fn subtract(&self, refinement: &Self::Refinement) -> Self::Refinement

Returns a refinement that represents the difference between this instance and the given refinement. Read more
Source§

impl StructuralPartialEq for ThemeColors

Auto Trait Implementations§

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>,

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

fn adapt_into(self) -> D

Convert the source color to the destination color using the bradford method by default.
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.
Source§

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

Source§

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

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
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.
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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

impl<T> Instrument for T

Source§

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

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

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

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

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

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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