pub struct FileTree { /* private fields */ }Expand description
Lazy-loading file explorer tree.
Implementations§
Source§impl FileTree
impl FileTree
Sourcepub fn entry_source(self, source: FileTreeEntrySource) -> Self
pub fn entry_source(self, source: FileTreeEntrySource) -> Self
Set the source used to enumerate directory entries.
FileTreeEntrySource::Local is the default. With a provided source, missing expanded
directories render the loading row and are requested through
FileTree::on_entry_request.
Toggle hidden entries (dotfiles).
Sourcepub fn max_entries_per_dir(self, max_entries: usize) -> Self
pub fn max_entries_per_dir(self, max_entries: usize) -> Self
Set max number of children loaded per directory.
Sourcepub fn show_icons(self, show_icons: bool) -> Self
pub fn show_icons(self, show_icons: bool) -> Self
Toggle icon rendering.
Sourcepub fn icon_style(self, style: FileIconStyle) -> Self
pub fn icon_style(self, style: FileIconStyle) -> Self
Set icon style for file tree items.
Sourcepub fn icon_palette(self, palette: FileIconPalette) -> Self
pub fn icon_palette(self, palette: FileIconPalette) -> Self
Set the color palette for file icons.
Sourcepub fn icon_override(
self,
pattern: impl Into<Arc<str>>,
icon: impl Into<Arc<str>>,
color: Option<Color>,
) -> Self
pub fn icon_override( self, pattern: impl Into<Arc<str>>, icon: impl Into<Arc<str>>, color: Option<Color>, ) -> Self
Add a custom icon override for a file extension or name.
The pattern can be a file extension (e.g., “rs”, “md”) or a full filename (e.g., “README.md”).
The icon will be used for files matching this pattern.
Sourcepub fn show_arrows(self, show: bool) -> Self
pub fn show_arrows(self, show: bool) -> Self
Toggle expansion arrows before directories.
Sourcepub fn indent_style(self, style: IndentStyle) -> Self
pub fn indent_style(self, style: IndentStyle) -> Self
Set style of indentation guides.
Sourcepub fn indent_guide_style(self, style: Style) -> Self
pub fn indent_guide_style(self, style: Style) -> Self
Set style for indent guides.
Sourcepub fn indent_guide_start_depth(self, depth: usize) -> Self
pub fn indent_guide_start_depth(self, depth: usize) -> Self
Set the first non-root depth that renders indentation guides (default 1).
Sourcepub fn indent_width(self, width: u16) -> Self
pub fn indent_width(self, width: u16) -> Self
Set indentation cells per hierarchy level (default 2).
Sourcepub fn directory_icon(self, icon: impl Into<Arc<str>>) -> Self
pub fn directory_icon(self, icon: impl Into<Arc<str>>) -> Self
Set directory icon.
Sourcepub fn opened_directory_icon(self, icon: impl Into<Arc<str>>) -> Self
pub fn opened_directory_icon(self, icon: impl Into<Arc<str>>) -> Self
Set “opened directory” icon.
Sourcepub fn symlink_icon(self, icon: impl Into<Arc<str>>) -> Self
pub fn symlink_icon(self, icon: impl Into<Arc<str>>) -> Self
Set symlink icon.
Sourcepub fn other_icon(self, icon: impl Into<Arc<str>>) -> Self
pub fn other_icon(self, icon: impl Into<Arc<str>>) -> Self
Set “other type” icon.
Sourcepub fn directory_label_style(self, style: Style) -> Self
pub fn directory_label_style(self, style: Style) -> Self
Set the label style for directory rows.
Sourcepub fn file_label_style(self, style: Style) -> Self
pub fn file_label_style(self, style: Style) -> Self
Set the label style for regular file rows.
Sourcepub fn path_style(
self,
path: impl Into<Arc<str>>,
style: FileTreeItemStyle,
) -> Self
pub fn path_style( self, path: impl Into<Arc<str>>, style: FileTreeItemStyle, ) -> Self
Set item decorations for an exact path under the effective root.
Sourcepub fn path_styles(
self,
styles: impl IntoIterator<Item = (impl Into<Arc<str>>, FileTreeItemStyle)>,
) -> Self
pub fn path_styles( self, styles: impl IntoIterator<Item = (impl Into<Arc<str>>, FileTreeItemStyle)>, ) -> Self
Set item decorations for exact paths under the effective root.
Sourcepub fn loading_label(self, label: impl Into<Arc<str>>) -> Self
pub fn loading_label(self, label: impl Into<Arc<str>>) -> Self
Set loading row label.
Sourcepub fn error_prefix(self, prefix: impl Into<Arc<str>>) -> Self
pub fn error_prefix(self, prefix: impl Into<Arc<str>>) -> Self
Set load-error prefix.
Sourcepub fn hover_style(self, style: Style) -> Self
pub fn hover_style(self, style: Style) -> Self
Set hovered style.
Sourcepub fn extend_hover_style(self, style: Style) -> Self
pub fn extend_hover_style(self, style: Style) -> Self
Extend the themed hovered style.
Sourcepub fn inherit_hover_style(self) -> Self
pub fn inherit_hover_style(self) -> Self
Inherit the themed hovered style.
Sourcepub fn hover_style_slot(self, slot: StyleSlot) -> Self
pub fn hover_style_slot(self, slot: StyleSlot) -> Self
Set hover style slot directly for composite forwarding.
Sourcepub fn item_hover_style(self, style: Style) -> Self
pub fn item_hover_style(self, style: Style) -> Self
Set hovered row style.
Sourcepub fn extend_item_hover_style(self, style: Style) -> Self
pub fn extend_item_hover_style(self, style: Style) -> Self
Extend the themed hovered row style.
Sourcepub fn inherit_item_hover_style(self) -> Self
pub fn inherit_item_hover_style(self) -> Self
Inherit the themed hovered row style.
Sourcepub fn item_hover_style_slot(self, slot: StyleSlot) -> Self
pub fn item_hover_style_slot(self, slot: StyleSlot) -> Self
Set item-hover style slot directly for composite forwarding.
Sourcepub fn selection_style(self, style: Style) -> Self
pub fn selection_style(self, style: Style) -> Self
Set selected row style.
Sourcepub fn extend_selection_style(self, style: Style) -> Self
pub fn extend_selection_style(self, style: Style) -> Self
Extend the themed selected row style.
Sourcepub fn inherit_selection_style(self) -> Self
pub fn inherit_selection_style(self) -> Self
Inherit the themed selected row style.
Sourcepub fn selection_style_slot(self, slot: StyleSlot) -> Self
pub fn selection_style_slot(self, slot: StyleSlot) -> Self
Set selected row style slot directly for composite forwarding.
Sourcepub fn unfocused_selection_style(self, style: Style) -> Self
pub fn unfocused_selection_style(self, style: Style) -> Self
Set selected row style while the file tree is not focused.
Sourcepub fn extend_unfocused_selection_style(self, style: Style) -> Self
pub fn extend_unfocused_selection_style(self, style: Style) -> Self
Extend the themed selected row style while the file tree is not focused.
Sourcepub fn inherit_unfocused_selection_style(self) -> Self
pub fn inherit_unfocused_selection_style(self) -> Self
Inherit the themed selected row style while the file tree is not focused.
Sourcepub fn unfocused_selection_style_slot(self, slot: StyleSlot) -> Self
pub fn unfocused_selection_style_slot(self, slot: StyleSlot) -> Self
Set unfocused selected row style slot directly for composite forwarding.
Sourcepub fn clear_selection(self, clear: bool) -> Self
pub fn clear_selection(self, clear: bool) -> Self
Clear the selection highlight (no current row).
When true, this is authoritative over both the controlled selected
prop and internal selection state. See crate::widgets::Tree::clear_selection.
Sourcepub fn selected_path(self, path: impl Into<Arc<str>>) -> Self
pub fn selected_path(self, path: impl Into<Arc<str>>) -> Self
Select a visible row by path.
The path may be absolute under the tree root or relative to it. Selection is a no-op when the normalized path is outside the root or is not present in the current visible projection.
Sourcepub fn reveal_path(self, path: impl Into<Arc<str>>) -> Self
pub fn reveal_path(self, path: impl Into<Arc<str>>) -> Self
Reveal a path by expanding/loading ancestor directories when possible.
The path may be absolute under the tree root or relative to it. Revealing is a no-op for
paths outside the root, paths hidden by show_hidden(false), unreadable directories, capped
directory entries, and paths absent from the active all-files/changed-only projection.
Sourcepub fn select_path(self, path: impl Into<Arc<str>>) -> Self
pub fn select_path(self, path: impl Into<Arc<str>>) -> Self
Reveal and select a path, forcing scroll to the row when it is visible.
This combines reveal_path and selected_path behavior. With controlled
expanded_paths, the path can only be revealed when the controlled expansion set (plus this
reveal request for rendering) makes the ancestors available to load.
Sourcepub fn force_scroll_to_selected(self, force: bool) -> Self
pub fn force_scroll_to_selected(self, force: bool) -> Self
Force scroll to make the selected item visible on next render.
Sourcepub fn expanded_paths(
self,
paths: impl IntoIterator<Item = impl Into<Arc<str>>>,
) -> Self
pub fn expanded_paths( self, paths: impl IntoIterator<Item = impl Into<Arc<str>>>, ) -> Self
Control expanded directory paths.
Sourcepub fn initial_expanded_paths(
self,
paths: impl IntoIterator<Item = impl Into<Arc<str>>>,
) -> Self
pub fn initial_expanded_paths( self, paths: impl IntoIterator<Item = impl Into<Arc<str>>>, ) -> Self
Seed expansion state the tree then owns, so an application can restore what was expanded before the tree was unmounted or re-rooted.
Paths may be absolute under the tree root or relative to it; paths outside the root are
ignored. They are applied when the tree mounts and whenever the root changes, and never
again — later edits to this set do not disturb expansion the user has since changed. Pair it
with Self::on_toggle to record what to seed next time.
Ancestors are deliberately not expanded along with a seeded path: collapsing a directory leaves what is inside it expanded, so seeding a descendant must not reopen the parent the user closed. A seeded path becomes visible when its parent is expanded again.
Ignored when Self::expanded_paths controls expansion, which is authoritative on its own.
Sourcepub fn selection_symbol(self, symbol: Option<impl Into<Arc<str>>>) -> Self
pub fn selection_symbol(self, symbol: Option<impl Into<Arc<str>>>) -> Self
Set selected row prefix symbol.
Sourcepub fn selection_symbol_style(self, style: Option<Style>) -> Self
pub fn selection_symbol_style(self, style: Option<Style>) -> Self
Set selected row prefix style.
Sourcepub fn unfocused_selection_symbol_style(self, style: Option<Style>) -> Self
pub fn unfocused_selection_symbol_style(self, style: Option<Style>) -> Self
Set selected row prefix style while the file tree is not focused.
Sourcepub fn scrollbar_config(self, config: ScrollbarConfig) -> Self
pub fn scrollbar_config(self, config: ScrollbarConfig) -> Self
Set scrollbar configuration.
Sourcepub fn scroll_keys(self, keys: ScrollKeymap) -> Self
pub fn scroll_keys(self, keys: ScrollKeymap) -> Self
Configure keyboard scrolling bindings.
Sourcepub fn scroll_wheel(self, enabled: bool) -> Self
pub fn scroll_wheel(self, enabled: bool) -> Self
Enable mouse wheel scrolling.
Sourcepub fn show_scroll_indicators(self, show: bool) -> Self
pub fn show_scroll_indicators(self, show: bool) -> Self
Toggle hidden-row indicators (N more).
Sourcepub fn scroll_indicator_style(self, style: Style) -> Self
pub fn scroll_indicator_style(self, style: Style) -> Self
Set hidden-row indicator style.
Sourcepub fn empty_text(self, text: impl Into<Arc<str>>) -> Self
pub fn empty_text(self, text: impl Into<Arc<str>>) -> Self
Set empty-state text.
Sourcepub fn empty_text_style(self, style: Style) -> Self
pub fn empty_text_style(self, style: Style) -> Self
Set empty-state style.
Sourcepub fn empty_text_padding(self, padding: impl Into<Padding>) -> Self
pub fn empty_text_padding(self, padding: impl Into<Padding>) -> Self
Set the inset around the empty-state text.
The tree’s own rows are flush with the surface because the root row starts the hierarchy there, but a placeholder is prose rather than a row, and applications usually align it with their other empty states instead. Defaults to none, which keeps it flush with the rows.
Sourcepub fn tree_focus_key(self, key: impl Into<Arc<str>>) -> Self
pub fn tree_focus_key(self, key: impl Into<Arc<str>>) -> Self
Set the key used to focus the tree inside this composite widget.
Sourcepub fn explorer_focus_key(self, key: impl Into<Arc<str>>) -> Self
pub fn explorer_focus_key(self, key: impl Into<Arc<str>>) -> Self
Set the key used to focus the explorer input inside this composite widget.
Sourcepub fn explorer_placeholder(self, text: impl Into<Arc<str>>) -> Self
pub fn explorer_placeholder(self, text: impl Into<Arc<str>>) -> Self
Set explorer placeholder text.
Sourcepub fn explorer_prefix(self, prefix: impl Into<Arc<str>>) -> Self
pub fn explorer_prefix(self, prefix: impl Into<Arc<str>>) -> Self
Set explorer input prefix text.
Sourcepub fn explorer_input_border(self, border: bool) -> Self
pub fn explorer_input_border(self, border: bool) -> Self
Toggle explorer input border.
Sourcepub fn explorer_input_border_style(self, style: BorderStyle) -> Self
pub fn explorer_input_border_style(self, style: BorderStyle) -> Self
Set explorer input border style.
Sourcepub fn explorer_input_padding(self, padding: impl Into<Padding>) -> Self
pub fn explorer_input_padding(self, padding: impl Into<Padding>) -> Self
Set explorer input padding.
Sourcepub fn explorer_input_style(self, style: Style) -> Self
pub fn explorer_input_style(self, style: Style) -> Self
Set explorer input style.
Sourcepub fn explorer_input_focus_style(self, style: Style) -> Self
pub fn explorer_input_focus_style(self, style: Style) -> Self
Set explorer input style when focused.
Sourcepub fn extend_explorer_input_focus_style(self, style: Style) -> Self
pub fn extend_explorer_input_focus_style(self, style: Style) -> Self
Extend the themed explorer input focus style.
Sourcepub fn inherit_explorer_input_focus_style(self) -> Self
pub fn inherit_explorer_input_focus_style(self) -> Self
Inherit the themed explorer input focus style.
Sourcepub fn explorer_input_focus_style_slot(self, slot: StyleSlot) -> Self
pub fn explorer_input_focus_style_slot(self, slot: StyleSlot) -> Self
Set explorer input focus style slot directly for composite forwarding.
Sourcepub fn explorer_input_focus_content_style(self, style: Style) -> Self
pub fn explorer_input_focus_content_style(self, style: Style) -> Self
Set focused explorer input content text style.
Sourcepub fn explorer_placeholder_style(self, style: Style) -> Self
pub fn explorer_placeholder_style(self, style: Style) -> Self
Set explorer placeholder style.
Sourcepub fn explorer_focus_placeholder_style(self, style: Style) -> Self
pub fn explorer_focus_placeholder_style(self, style: Style) -> Self
Set explorer placeholder style when focused.
Sourcepub fn explorer_match_style(self, style: Style) -> Self
pub fn explorer_match_style(self, style: Style) -> Self
Set explorer search match highlight style.
Sourcepub fn explorer_divider(self, show: bool) -> Self
pub fn explorer_divider(self, show: bool) -> Self
Toggle divider below the explorer input.
Sourcepub fn explorer_divider_join_frame(self, join: bool) -> Self
pub fn explorer_divider_join_frame(self, join: bool) -> Self
Toggle frame-join behavior for explorer divider.
Sourcepub fn explorer_divider_char(self, ch: char) -> Self
pub fn explorer_divider_char(self, ch: char) -> Self
Set divider character for explorer divider.
Sourcepub fn explorer_divider_style(self, style: Style) -> Self
pub fn explorer_divider_style(self, style: Style) -> Self
Set explorer divider style.
Sourcepub fn on_explorer_focus(
self,
cb: Callback<FileTreeExplorerFocusOrigin>,
) -> Self
pub fn on_explorer_focus( self, cb: Callback<FileTreeExplorerFocusOrigin>, ) -> Self
Set the callback fired when the explorer input receives focus.
Sourcepub fn on_explorer_blur(self, cb: Callback<()>) -> Self
pub fn on_explorer_blur(self, cb: Callback<()>) -> Self
Set the callback fired when the explorer input loses focus.
Sourcepub fn on_explorer_escape(self, cb: Callback<()>) -> Self
pub fn on_explorer_escape(self, cb: Callback<()>) -> Self
Set the callback fired when Escape or an outside tree/divider click leaves an explorer focused directly by pointer.
Explorer focus entered from the tree with / returns to the tree instead and does not emit
this callback. Without a callback, pointer-entered explorer focus also returns to the tree.
Sourcepub fn activate_on_click(self, activate_on_click: bool) -> Self
pub fn activate_on_click(self, activate_on_click: bool) -> Self
Set tree activation behavior for mouse clicks.
Sourcepub fn tab_stop(self, tab_stop: bool) -> Self
pub fn tab_stop(self, tab_stop: bool) -> Self
Control whether the file tree participates in Tab / Shift+Tab traversal.
Sourcepub fn on_focus(self, cb: Callback<()>) -> Self
pub fn on_focus(self, cb: Callback<()>) -> Self
Set the callback fired when the file tree gains focus.
Sourcepub fn on_blur(self, cb: Callback<()>) -> Self
pub fn on_blur(self, cb: Callback<()>) -> Self
Set the callback fired when the file tree loses focus.
Sourcepub fn on_entry_request(self, cb: Callback<FileTreeEntryRequest>) -> Self
pub fn on_entry_request(self, cb: Callback<FileTreeEntryRequest>) -> Self
Set the callback fired when a provided entry source needs a directory listing.
The callback should only enqueue application work. Perform remote or other blocking I/O in
a crate::Command, then rebuild the widget with a matching
FileTreeDirectoryListing in FileTreeEntrySource::Provided.
Sourcepub fn keymap(self, keymap: TreeKeymap) -> Self
pub fn keymap(self, keymap: TreeKeymap) -> Self
Configure expand/collapse keymap.
Sourcepub fn git_status(self, enabled: bool) -> Self
pub fn git_status(self, enabled: bool) -> Self
Toggle Git status decorations.
Sourcepub fn highlight_changed_labels(self, enabled: bool) -> Self
pub fn highlight_changed_labels(self, enabled: bool) -> Self
Toggle applying change status styles to file and directory labels.
Status indicators remain styled independently. The default is false, so
file names keep their regular file-kind styling while dirty state is shown
in the right-aligned metadata.
Sourcepub fn git_view(self, view: FileTreeGitView) -> Self
pub fn git_view(self, view: FileTreeGitView) -> Self
Set the changed-file display mode using the Git-compatible alias.
Sourcepub fn change_source(self, source: FileTreeChangeSource) -> Self
pub fn change_source(self, source: FileTreeChangeSource) -> Self
Set the source used for changed-file decorations and changed-only projection.
Sourcepub fn change_view(self, view: FileTreeChangeView) -> Self
pub fn change_view(self, view: FileTreeChangeView) -> Self
Set the source-agnostic changed-file display mode.
Sourcepub fn git_changed_only(self, enabled: bool) -> Self
pub fn git_changed_only(self, enabled: bool) -> Self
Toggle changed-only mode using the Git-compatible builder name.
Sourcepub fn show_diff_stats(self, enabled: bool) -> Self
pub fn show_diff_stats(self, enabled: bool) -> Self
Toggle diff statistics decorations for any change source.
Sourcepub fn git_diff_stats(self, enabled: bool) -> Self
pub fn git_diff_stats(self, enabled: bool) -> Self
Toggle diff statistics decorations using the Git-compatible builder name.
Sourcepub fn git_icon_style(self, style: GitIconStyle) -> Self
pub fn git_icon_style(self, style: GitIconStyle) -> Self
Set icon style for Git status indicators.
Sourcepub fn refresh_git_status(self) -> Self
pub fn refresh_git_status(self) -> Self
Request an immediate Git status refresh.
Call this when building the widget in response to a user action.
Sourcepub fn git_refresh_token(self, token: u64) -> Self
pub fn git_refresh_token(self, token: u64) -> Self
Set explicit refresh token for Git status loading.
When the token changes, the component triggers a new background refresh.
Sourcepub fn git_marker_modified(self, marker: impl Into<Arc<str>>) -> Self
pub fn git_marker_modified(self, marker: impl Into<Arc<str>>) -> Self
Set marker for Modified git status.
Sourcepub fn git_marker_added(self, marker: impl Into<Arc<str>>) -> Self
pub fn git_marker_added(self, marker: impl Into<Arc<str>>) -> Self
Set marker for Added git status.
Sourcepub fn git_marker_deleted(self, marker: impl Into<Arc<str>>) -> Self
pub fn git_marker_deleted(self, marker: impl Into<Arc<str>>) -> Self
Set marker for Deleted git status.
Sourcepub fn git_marker_renamed(self, marker: impl Into<Arc<str>>) -> Self
pub fn git_marker_renamed(self, marker: impl Into<Arc<str>>) -> Self
Set marker for Renamed git status.
Sourcepub fn git_marker_untracked(self, marker: impl Into<Arc<str>>) -> Self
pub fn git_marker_untracked(self, marker: impl Into<Arc<str>>) -> Self
Set marker for Untracked git status.
Sourcepub fn git_marker_conflicted(self, marker: impl Into<Arc<str>>) -> Self
pub fn git_marker_conflicted(self, marker: impl Into<Arc<str>>) -> Self
Set marker for Conflicted git status.
Sourcepub fn git_style_modified(self, style: Style) -> Self
pub fn git_style_modified(self, style: Style) -> Self
Set style for Modified git status marker.
Sourcepub fn git_style_added(self, style: Style) -> Self
pub fn git_style_added(self, style: Style) -> Self
Set style for Added git status marker.
Sourcepub fn git_style_deleted(self, style: Style) -> Self
pub fn git_style_deleted(self, style: Style) -> Self
Set style for Deleted git status marker.
Sourcepub fn git_style_renamed(self, style: Style) -> Self
pub fn git_style_renamed(self, style: Style) -> Self
Set style for Renamed git status marker.
Sourcepub fn git_style_untracked(self, style: Style) -> Self
pub fn git_style_untracked(self, style: Style) -> Self
Set style for Untracked git status marker.
Sourcepub fn git_style_conflicted(self, style: Style) -> Self
pub fn git_style_conflicted(self, style: Style) -> Self
Set style for Conflicted git status marker.
Sourcepub fn change_suffix_style(self, style: Style) -> Self
pub fn change_suffix_style(self, style: Style) -> Self
Set a source-agnostic style patch for right-aligned change metadata.
Sourcepub fn git_suffix_style(self, style: Style) -> Self
pub fn git_suffix_style(self, style: Style) -> Self
Set a Git-compatible style patch for right-aligned change metadata.
Sourcepub fn change_suffix_priority(self, priority: FileTreeSuffixPriority) -> Self
pub fn change_suffix_priority(self, priority: FileTreeSuffixPriority) -> Self
Set whether labels or right-aligned change metadata win when rows are narrow.
Sourcepub fn git_suffix_priority(self, priority: FileTreeSuffixPriority) -> Self
pub fn git_suffix_priority(self, priority: FileTreeSuffixPriority) -> Self
Set Git-compatible truncation priority for right-aligned change metadata.
Sourcepub fn on_select(self, cb: Callback<FileTreeEvent>) -> Self
pub fn on_select(self, cb: Callback<FileTreeEvent>) -> Self
Set selection callback.
Sourcepub fn on_activate(self, cb: Callback<FileTreeEvent>) -> Self
pub fn on_activate(self, cb: Callback<FileTreeEvent>) -> Self
Fired when a row is activated (Enter, or click when activate_on_click is true).
Sourcepub fn on_toggle(self, cb: Callback<FileTreeToggleEvent>) -> Self
pub fn on_toggle(self, cb: Callback<FileTreeToggleEvent>) -> Self
Set expand/collapse callback.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FileTree
impl !Send for FileTree
impl !Sync for FileTree
impl !UnwindSafe for FileTree
impl Freeze for FileTree
impl Unpin for FileTree
impl UnsafeUnpin for FileTree
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T, 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> IntoElement for T
impl<T> IntoElement for T
Source§fn key(self, key: impl Into<Key>) -> Element
fn key(self, key: impl Into<Key>) -> Element
Source§fn component_state_key(self, key: impl Into<Key>) -> Element
fn component_state_key(self, key: impl Into<Key>) -> Element
Element::component_state_key.Source§fn min_width(self, w: Length) -> Element
fn min_width(self, w: Length) -> Element
LayoutConstraints::min_w for semantics.Source§fn min_height(self, h: Length) -> Element
fn min_height(self, h: Length) -> Element
LayoutConstraints::min_h for semantics.Source§fn max_width(self, w: Length) -> Element
fn max_width(self, w: Length) -> Element
LayoutConstraints::max_w for semantics.Source§fn max_height(self, h: Length) -> Element
fn max_height(self, h: Length) -> Element
LayoutConstraints::max_h for semantics.Source§fn reflows(self, reflows: bool) -> Element
fn reflows(self, reflows: bool) -> Element
Source§fn shrink_priority(self, priority: ShrinkPriority) -> Element
fn shrink_priority(self, priority: ShrinkPriority) -> Element
Source§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.Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§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 moreSource§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 moreSource§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
Source§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
Source§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.Source§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.Source§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.Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Tap for T
impl<T> Tap for T
Source§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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 moreSource§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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>
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