9879 lines
799 KiB
Plaintext
9879 lines
799 KiB
Plaintext
# Iced Pocket Guide
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/index.html](https://docs.rs/iced/0.13.1/iced/index.html)
|
||
|
||
# Crate icedCopy item path
|
||
|
||
[Source](../src/iced/lib.rs.html#1-688)
|
||
|
||
Expand description
|
||
|
||
iced is a cross-platform GUI library focused on simplicity and type-safety.
|
||
Inspired by [Elm](https://elm-lang.org/).
|
||
|
||
## [§](#disclaimer)Disclaimer
|
||
|
||
iced is **experimental** software. If you expect the documentation to hold your hand
|
||
as you learn the ropes, you are in for a frustrating experience.
|
||
|
||
The library leverages Rust to its full extent: ownership, borrowing, lifetimes, futures,
|
||
streams, first-class functions, trait bounds, closures, and more. This documentation
|
||
is not meant to teach you any of these. Far from it, it will assume you have **mastered**
|
||
all of them.
|
||
|
||
Furthermore—just like Rust—iced is very unforgiving. It will not let you easily cut corners.
|
||
The type signatures alone can be used to learn how to use most of the library.
|
||
Everything is connected.
|
||
|
||
Therefore, iced is easy to learn for **advanced** Rust programmers; but plenty of patient
|
||
beginners have learned it and had a good time with it. Since it leverages a lot of what
|
||
Rust has to offer in a type-safe way, it can be a great way to discover Rust itself.
|
||
|
||
If you don’t like the sound of that, you expect to be spoonfed, or you feel frustrated
|
||
and struggle to use the library; then I recommend you to wait patiently until [the book](https://book.iced.rs)
|
||
is finished.
|
||
|
||
## [§](#the-pocket-guide)The Pocket Guide
|
||
|
||
Start by calling [`run`](fn.run.html "fn iced::run"):
|
||
|
||
```
|
||
pub fn main() -> iced::Result {
|
||
iced::run("A cool counter", update, view)
|
||
}
|
||
```
|
||
|
||
Define an `update` function to **change** your state:
|
||
|
||
```
|
||
fn update(counter: &mut u64, message: Message) {
|
||
match message {
|
||
Message::Increment => *counter += 1,
|
||
}
|
||
}
|
||
```
|
||
|
||
Define a `view` function to **display** your state:
|
||
|
||
```
|
||
use iced::widget::{button, text};
|
||
use iced::Element;
|
||
|
||
fn view(counter: &u64) -> Element<Message> {
|
||
button(text(counter)).on_press(Message::Increment).into()
|
||
}
|
||
```
|
||
|
||
And create a `Message` enum to **connect** `view` and `update` together:
|
||
|
||
```
|
||
#[derive(Debug, Clone)]
|
||
enum Message {
|
||
Increment,
|
||
}
|
||
```
|
||
|
||
### [§](#custom-state)Custom State
|
||
|
||
You can define your own struct for your state:
|
||
|
||
```
|
||
#[derive(Default)]
|
||
struct Counter {
|
||
value: u64,
|
||
}
|
||
```
|
||
|
||
But you have to change `update` and `view` accordingly:
|
||
|
||
```
|
||
fn update(counter: &mut Counter, message: Message) {
|
||
match message {
|
||
Message::Increment => counter.value += 1,
|
||
}
|
||
}
|
||
|
||
fn view(counter: &Counter) -> Element<Message> {
|
||
button(text(counter.value)).on_press(Message::Increment).into()
|
||
}
|
||
```
|
||
|
||
### [§](#widgets-and-elements)Widgets and Elements
|
||
|
||
The `view` function must return an [`Element`](type.Element.html "type iced::Element"). An [`Element`](type.Element.html "type iced::Element") is just a generic [`widget`](widget/index.html "mod iced::widget").
|
||
|
||
The [`widget`](widget/index.html "mod iced::widget") module contains a bunch of functions to help you build
|
||
and use widgets.
|
||
|
||
Widgets are configured using the builder pattern:
|
||
|
||
```
|
||
use iced::widget::{button, column, text};
|
||
use iced::Element;
|
||
|
||
fn view(counter: &Counter) -> Element<Message> {
|
||
column![
|
||
text(counter.value).size(20),
|
||
button("Increment").on_press(Message::Increment),
|
||
]
|
||
.spacing(10)
|
||
.into()
|
||
}
|
||
```
|
||
|
||
A widget can be turned into an [`Element`](type.Element.html "type iced::Element") by calling `into`.
|
||
|
||
Widgets and elements are generic over the message type they produce. The
|
||
[`Element`](type.Element.html "type iced::Element") returned by `view` must have the same `Message` type as
|
||
your `update`.
|
||
|
||
### [§](#layout-1)Layout
|
||
|
||
There is no unified layout system in iced. Instead, each widget implements
|
||
its own layout strategy.
|
||
|
||
Building your layout will often consist in using a combination of
|
||
[rows](widget/struct.Row.html "struct iced::widget::Row"), [columns](widget/struct.Column.html "struct iced::widget::Column"), and [containers](widget/struct.Container.html "struct iced::widget::Container"):
|
||
|
||
```
|
||
use iced::widget::{column, container, row};
|
||
use iced::{Fill, Element};
|
||
|
||
fn view(state: &State) -> Element<Message> {
|
||
container(
|
||
column![
|
||
"Top",
|
||
row!["Left", "Right"].spacing(10),
|
||
"Bottom"
|
||
]
|
||
.spacing(10)
|
||
)
|
||
.padding(10)
|
||
.center_x(Fill)
|
||
.center_y(Fill)
|
||
.into()
|
||
}
|
||
```
|
||
|
||
Rows and columns lay out their children horizontally and vertically,
|
||
respectively. [Spacing](widget/struct.Column.html#method.spacing "method iced::widget::Column::spacing") can be easily added between elements.
|
||
|
||
Containers position or align a single widget inside their bounds.
|
||
|
||
### [§](#sizing)Sizing
|
||
|
||
The width and height of widgets can generally be defined using a [`Length`](enum.Length.html "enum iced::Length").
|
||
|
||
* [`Fill`](enum.Length.html#variant.Fill "variant iced::Length::Fill") will make the widget take all the available space in a given axis.
|
||
* [`Shrink`](enum.Length.html#variant.Shrink "variant iced::Length::Shrink") will make the widget use its intrinsic size.
|
||
|
||
Most widgets use a [`Shrink`](enum.Length.html#variant.Shrink "variant iced::Length::Shrink") sizing strategy by default, but will inherit
|
||
a [`Fill`](enum.Length.html#variant.Fill "variant iced::Length::Fill") strategy from their children.
|
||
|
||
A fixed numeric [`Length`](enum.Length.html "enum iced::Length") in [`Pixels`](struct.Pixels.html "struct iced::Pixels") can also be used:
|
||
|
||
```
|
||
use iced::widget::container;
|
||
use iced::Element;
|
||
|
||
fn view(state: &State) -> Element<Message> {
|
||
container("I am 300px tall!").height(300).into()
|
||
}
|
||
```
|
||
|
||
### [§](#theming)Theming
|
||
|
||
The default [`Theme`](enum.Theme.html "enum iced::Theme") of an application can be changed by defining a `theme`
|
||
function and leveraging the [`Application`](application/struct.Application.html "struct iced::application::Application") builder, instead of directly
|
||
calling [`run`](fn.run.html "fn iced::run"):
|
||
|
||
```
|
||
use iced::Theme;
|
||
|
||
pub fn main() -> iced::Result {
|
||
iced::application("A cool application", update, view)
|
||
.theme(theme)
|
||
.run()
|
||
}
|
||
|
||
fn theme(state: &State) -> Theme {
|
||
Theme::TokyoNight
|
||
}
|
||
```
|
||
|
||
The `theme` function takes the current state of the application, allowing the
|
||
returned [`Theme`](enum.Theme.html "enum iced::Theme") to be completely dynamic—just like `view`.
|
||
|
||
There are a bunch of built-in [`Theme`](enum.Theme.html "enum iced::Theme") variants at your disposal, but you can
|
||
also [create your own](enum.Theme.html#method.custom "associated function iced::Theme::custom").
|
||
|
||
### [§](#styling)Styling
|
||
|
||
As with layout, iced does not have a unified styling system. However, all
|
||
of the built-in widgets follow the same styling approach.
|
||
|
||
The appearance of a widget can be changed by calling its `style` method:
|
||
|
||
```
|
||
use iced::widget::container;
|
||
use iced::Element;
|
||
|
||
fn view(state: &State) -> Element<Message> {
|
||
container("I am a rounded box!").style(container::rounded_box).into()
|
||
}
|
||
```
|
||
|
||
The `style` method of a widget takes a closure that, given the current active
|
||
[`Theme`](enum.Theme.html "enum iced::Theme"), returns the widget style:
|
||
|
||
```
|
||
use iced::widget::button;
|
||
use iced::{Element, Theme};
|
||
|
||
fn view(state: &State) -> Element<Message> {
|
||
button("I am a styled button!").style(|theme: &Theme, status| {
|
||
let palette = theme.extended_palette();
|
||
|
||
match status {
|
||
button::Status::Active => {
|
||
button::Style::default()
|
||
.with_background(palette.success.strong.color)
|
||
}
|
||
_ => button::primary(theme, status),
|
||
}
|
||
})
|
||
.into()
|
||
}
|
||
```
|
||
|
||
Widgets that can be in multiple different states will also provide the closure
|
||
with some [`Status`](widget/button/enum.Status.html "enum iced::widget::button::Status"), allowing you to use a different style for each state.
|
||
|
||
You can extract the [`Palette`](enum.Theme.html#method.palette "method iced::Theme::palette") colors of a [`Theme`](enum.Theme.html "enum iced::Theme") with the [`palette`](enum.Theme.html#method.palette "method iced::Theme::palette") or
|
||
[`extended_palette`](enum.Theme.html#method.extended_palette "method iced::Theme::extended_palette") methods.
|
||
|
||
Most widgets provide styling functions for your convenience in their respective modules;
|
||
like [`container::rounded_box`](widget/container/fn.rounded_box.html "fn iced::widget::container::rounded_box"), [`button::primary`](widget/button/fn.primary.html "fn iced::widget::button::primary"), or [`text::danger`](widget/text/fn.danger.html "fn iced::widget::text::danger").
|
||
|
||
### [§](#concurrent-tasks)Concurrent Tasks
|
||
|
||
The `update` function can *optionally* return a [`Task`](struct.Task.html "struct iced::Task").
|
||
|
||
A [`Task`](struct.Task.html "struct iced::Task") can be leveraged to perform asynchronous work, like running a
|
||
future or a stream:
|
||
|
||
```
|
||
use iced::Task;
|
||
|
||
struct State {
|
||
weather: Option<Weather>,
|
||
}
|
||
|
||
enum Message {
|
||
FetchWeather,
|
||
WeatherFetched(Weather),
|
||
}
|
||
|
||
fn update(state: &mut State, message: Message) -> Task<Message> {
|
||
match message {
|
||
Message::FetchWeather => Task::perform(
|
||
fetch_weather(),
|
||
Message::WeatherFetched,
|
||
),
|
||
Message::WeatherFetched(weather) => {
|
||
state.weather = Some(weather);
|
||
|
||
Task::none()
|
||
}
|
||
}
|
||
}
|
||
|
||
async fn fetch_weather() -> Weather {
|
||
// ...
|
||
}
|
||
```
|
||
|
||
Tasks can also be used to interact with the iced runtime. Some modules
|
||
expose functions that create tasks for different purposes—like [changing
|
||
window settings](window/index.html#functions "mod iced::window"), [focusing a widget](widget/fn.focus_next.html "fn iced::widget::focus_next"), or
|
||
[querying its visible bounds](widget/container/fn.visible_bounds.html "fn iced::widget::container::visible_bounds").
|
||
|
||
Like futures and streams, tasks expose [a monadic interface](struct.Task.html#method.then "method iced::Task::then")—but they can also be
|
||
[mapped](struct.Task.html#method.map "method iced::Task::map"), [chained](struct.Task.html#method.chain "method iced::Task::chain"), [batched](struct.Task.html#method.batch "associated function iced::Task::batch"), [canceled](struct.Task.html#method.abortable "method iced::Task::abortable"),
|
||
and more.
|
||
|
||
### [§](#passive-subscriptions)Passive Subscriptions
|
||
|
||
Applications can subscribe to passive sources of data—like time ticks or runtime events.
|
||
|
||
You will need to define a `subscription` function and use the [`Application`](application/struct.Application.html "struct iced::application::Application") builder:
|
||
|
||
```
|
||
use iced::window;
|
||
use iced::{Size, Subscription};
|
||
|
||
#[derive(Debug)]
|
||
enum Message {
|
||
WindowResized(Size),
|
||
}
|
||
|
||
pub fn main() -> iced::Result {
|
||
iced::application("A cool application", update, view)
|
||
.subscription(subscription)
|
||
.run()
|
||
}
|
||
|
||
fn subscription(state: &State) -> Subscription<Message> {
|
||
window::resize_events().map(|(_id, size)| Message::WindowResized(size))
|
||
}
|
||
```
|
||
|
||
A [`Subscription`](struct.Subscription.html "struct iced::Subscription") is [a *declarative* builder of streams](struct.Subscription.html#the-lifetime-of-a-subscription "struct iced::Subscription")
|
||
that are not allowed to end on their own. Only the `subscription` function
|
||
dictates the active subscriptions—just like `view` fully dictates the
|
||
visible widgets of your user interface, at every moment.
|
||
|
||
As with tasks, some modules expose convenient functions that build a [`Subscription`](struct.Subscription.html "struct iced::Subscription") for you—like
|
||
[`time::every`](time/fn.every.html "fn iced::time::every") which can be used to listen to time, or [`keyboard::on_key_press`](keyboard/fn.on_key_press.html "fn iced::keyboard::on_key_press") which will notify you
|
||
of any key presses. But you can also create your own with [`Subscription::run`](struct.Subscription.html#method.run "associated function iced::Subscription::run") and [`run_with_id`](struct.Subscription.html#method.run_with_id "associated function iced::Subscription::run_with_id").
|
||
|
||
### [§](#scaling-applications)Scaling Applications
|
||
|
||
The `update`, `view`, and `Message` triplet composes very nicely.
|
||
|
||
A common pattern is to leverage this composability to split an
|
||
application into different screens:
|
||
|
||
```
|
||
use contacts::Contacts;
|
||
use conversation::Conversation;
|
||
|
||
use iced::{Element, Task};
|
||
|
||
struct State {
|
||
screen: Screen,
|
||
}
|
||
|
||
enum Screen {
|
||
Contacts(Contacts),
|
||
Conversation(Conversation),
|
||
}
|
||
|
||
enum Message {
|
||
Contacts(contacts::Message),
|
||
Conversation(conversation::Message)
|
||
}
|
||
|
||
fn update(state: &mut State, message: Message) -> Task<Message> {
|
||
match message {
|
||
Message::Contacts(message) => {
|
||
if let Screen::Contacts(contacts) = &mut state.screen {
|
||
let action = contacts.update(message);
|
||
|
||
match action {
|
||
contacts::Action::None => Task::none(),
|
||
contacts::Action::Run(task) => task.map(Message::Contacts),
|
||
contacts::Action::Chat(contact) => {
|
||
let (conversation, task) = Conversation::new(contact);
|
||
|
||
state.screen = Screen::Conversation(conversation);
|
||
|
||
task.map(Message::Conversation)
|
||
}
|
||
}
|
||
} else {
|
||
Task::none()
|
||
}
|
||
}
|
||
Message::Conversation(message) => {
|
||
if let Screen::Conversation(conversation) = &mut state.screen {
|
||
conversation.update(message).map(Message::Conversation)
|
||
} else {
|
||
Task::none()
|
||
}
|
||
}
|
||
}
|
||
}
|
||
|
||
fn view(state: &State) -> Element<Message> {
|
||
match &state.screen {
|
||
Screen::Contacts(contacts) => contacts.view().map(Message::Contacts),
|
||
Screen::Conversation(conversation) => conversation.view().map(Message::Conversation),
|
||
}
|
||
}
|
||
```
|
||
|
||
The `update` method of a screen can return an `Action` enum that can be leveraged by the parent to
|
||
execute a task or transition to a completely different screen altogether. The variants of `Action` can
|
||
have associated data. For instance, in the example above, the `Conversation` screen is created when
|
||
`Contacts::update` returns an `Action::Chat` with the selected contact.
|
||
|
||
Effectively, this approach lets you “tell a story” to connect different screens together in a type safe
|
||
way.
|
||
|
||
Furthermore, functor methods like [`Task::map`](struct.Task.html#method.map "method iced::Task::map"), [`Element::map`](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html#method.map "method iced_core::element::Element::map"), and [`Subscription::map`](struct.Subscription.html#method.map "method iced::Subscription::map") make composition
|
||
seamless.
|
||
|
||
## Re-exports[§](#reexports)
|
||
|
||
`pub use application::Application;`
|
||
|
||
`pub use daemon::Daemon;`
|
||
|
||
`pub use settings::Settings;`
|
||
|
||
`pub use iced_futures::futures;`
|
||
|
||
`pub use iced_highlighter as highlighter;``highlighter`
|
||
|
||
`pub use alignment::Horizontal::Left;`
|
||
|
||
`pub use alignment::Horizontal::Right;`
|
||
|
||
`pub use alignment::Vertical::Bottom;`
|
||
|
||
`pub use alignment::Vertical::Top;`
|
||
|
||
`pub use Alignment::Center;`
|
||
|
||
`pub use Length::Fill;`
|
||
|
||
`pub use Length::FillPortion;`
|
||
|
||
`pub use Length::Shrink;`
|
||
|
||
## Modules[§](#modules)
|
||
|
||
[advanced](advanced/index.html "mod iced::advanced")`advanced`
|
||
: Leverage advanced concepts like custom widgets.
|
||
|
||
[alignment](alignment/index.html "mod iced::alignment")
|
||
: Align and position widgets.
|
||
|
||
[application](application/index.html "mod iced::application")
|
||
: Create and run iced applications step by step.
|
||
|
||
[border](border/index.html "mod iced::border")
|
||
: Draw lines around containers.
|
||
|
||
[clipboard](clipboard/index.html "mod iced::clipboard")
|
||
: Access the clipboard.
|
||
|
||
[daemon](daemon/index.html "mod iced::daemon")
|
||
: Create and run daemons that run in the background.
|
||
|
||
[event](event/index.html "mod iced::event")
|
||
: Handle events of a user interface.
|
||
|
||
[executor](executor/index.html "mod iced::executor")
|
||
: Choose your preferred executor to power your application.
|
||
|
||
[font](font/index.html "mod iced::font")
|
||
: Load and use fonts.
|
||
|
||
[gradient](gradient/index.html "mod iced::gradient")
|
||
: Colors that transition progressively.
|
||
|
||
[keyboard](keyboard/index.html "mod iced::keyboard")
|
||
: Listen and react to keyboard events.
|
||
|
||
[mouse](mouse/index.html "mod iced::mouse")
|
||
: Listen and react to mouse events.
|
||
|
||
[overlay](overlay/index.html "mod iced::overlay")
|
||
: Display interactive elements on top of other widgets.
|
||
|
||
[padding](padding/index.html "mod iced::padding")
|
||
: Space stuff around the perimeter.
|
||
|
||
[settings](settings/index.html "mod iced::settings")
|
||
: Configure your application.
|
||
|
||
[stream](stream/index.html "mod iced::stream")
|
||
: Create asynchronous streams of data.
|
||
|
||
[system](system/index.html "mod iced::system")`system`
|
||
: Retrieve system information.
|
||
|
||
[task](task/index.html "mod iced::task")
|
||
: Create runtime tasks.
|
||
|
||
[theme](theme/index.html "mod iced::theme")
|
||
: Use the built-in theme and styles.
|
||
|
||
[time](time/index.html "mod iced::time")
|
||
: Listen and react to time.
|
||
|
||
[touch](touch/index.html "mod iced::touch")
|
||
: Listen and react to touch events.
|
||
|
||
[widget](widget/index.html "mod iced::widget")
|
||
: Use the built-in widgets or create your own.
|
||
|
||
[window](window/index.html "mod iced::window")
|
||
: Configure the window of your application in native platforms.
|
||
|
||
## Macros[§](#macros)
|
||
|
||
[color](macro.color.html "macro iced::color")
|
||
: Creates a [`Color`](struct.Color.html "struct iced::Color") with shorter and cleaner syntax.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Border](struct.Border.html "struct iced::Border")
|
||
: A border.
|
||
|
||
[Color](struct.Color.html "struct iced::Color")
|
||
: A color in the `sRGB` color space.
|
||
|
||
[Degrees](struct.Degrees.html "struct iced::Degrees")
|
||
: Degrees
|
||
|
||
[Font](struct.Font.html "struct iced::Font")
|
||
: A font.
|
||
|
||
[Padding](struct.Padding.html "struct iced::Padding")
|
||
: An amount of space to pad for each side of a box
|
||
|
||
[Pixels](struct.Pixels.html "struct iced::Pixels")
|
||
: An amount of logical pixels.
|
||
|
||
[Point](struct.Point.html "struct iced::Point")
|
||
: A 2D point.
|
||
|
||
[Radians](struct.Radians.html "struct iced::Radians")
|
||
: Radians
|
||
|
||
[Rectangle](struct.Rectangle.html "struct iced::Rectangle")
|
||
: An axis-aligned rectangle.
|
||
|
||
[Shadow](struct.Shadow.html "struct iced::Shadow")
|
||
: A shadow.
|
||
|
||
[Size](struct.Size.html "struct iced::Size")
|
||
: An amount of space in 2 dimensions.
|
||
|
||
[Subscription](struct.Subscription.html "struct iced::Subscription")
|
||
: A request to listen to external events.
|
||
|
||
[Task](struct.Task.html "struct iced::Task")
|
||
: A set of concurrent actions to be performed by the iced runtime.
|
||
|
||
[Transformation](struct.Transformation.html "struct iced::Transformation")
|
||
: A 2D transformation matrix.
|
||
|
||
[Vector](struct.Vector.html "struct iced::Vector")
|
||
: A 2D vector.
|
||
|
||
## Enums[§](#enums)
|
||
|
||
[Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
: Alignment on the axis of a container.
|
||
|
||
[Background](enum.Background.html "enum iced::Background")
|
||
: The background of some element.
|
||
|
||
[ContentFit](enum.ContentFit.html "enum iced::ContentFit")
|
||
: The strategy used to fit the contents of a widget to its bounding box.
|
||
|
||
[Error](enum.Error.html "enum iced::Error")
|
||
: An error that occurred while running an application.
|
||
|
||
[Event](enum.Event.html "enum iced::Event")
|
||
: A user interface event.
|
||
|
||
[Gradient](enum.Gradient.html "enum iced::Gradient")
|
||
: A fill which transitions colors progressively along a direction, either linearly, radially (TBD),
|
||
or conically (TBD).
|
||
|
||
[Length](enum.Length.html "enum iced::Length")
|
||
: The strategy used to fill space in a specific dimension.
|
||
|
||
[Rotation](enum.Rotation.html "enum iced::Rotation")
|
||
: The strategy used to rotate the content.
|
||
|
||
[Theme](enum.Theme.html "enum iced::Theme")
|
||
: A built-in theme.
|
||
|
||
## Traits[§](#traits)
|
||
|
||
[Executor](trait.Executor.html "trait iced::Executor")
|
||
: A type that can run futures.
|
||
|
||
## Functions[§](#functions)
|
||
|
||
[application](fn.application.html "fn iced::application")
|
||
: Creates an iced [`Application`](application/struct.Application.html "struct iced::application::Application") given its title, update, and view logic.
|
||
|
||
[daemon](fn.daemon.html "fn iced::daemon")
|
||
: Creates an iced [`Daemon`](daemon/struct.Daemon.html "struct iced::daemon::Daemon") given its title, update, and view logic.
|
||
|
||
[exit](fn.exit.html "fn iced::exit")
|
||
: Creates a [`Task`](struct.Task.html "struct iced::Task") that exits the iced runtime.
|
||
|
||
[run](fn.run.html "fn iced::run")
|
||
: Runs a basic iced application with default [`Settings`](settings/struct.Settings.html "struct iced::settings::Settings") given its title,
|
||
update, and view logic.
|
||
|
||
## Type Aliases[§](#types)
|
||
|
||
[Element](type.Element.html "type iced::Element")
|
||
: A generic widget.
|
||
|
||
[Renderer](type.Renderer.html "type iced::Renderer")
|
||
: The default graphics renderer for [`iced`](https://github.com/iced-rs/iced).
|
||
|
||
[Result](type.Result.html "type iced::Result")
|
||
: The result of running an iced program.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/advanced/index.html](https://docs.rs/iced/0.13.1/iced/advanced/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module advancedCopy item path
|
||
|
||
[Source](../../src/iced/advanced.rs.html#1-25)
|
||
|
||
Available on **crate feature `advanced`** only.
|
||
|
||
Expand description
|
||
|
||
Leverage advanced concepts like custom widgets.
|
||
|
||
## Re-exports[§](#reexports)
|
||
|
||
`pub use crate::renderer::graphics;`
|
||
|
||
## Modules[§](#modules)
|
||
|
||
[clipboard](clipboard/index.html "mod iced::advanced::clipboard")
|
||
: Access the clipboard.
|
||
|
||
[image](image/index.html "mod iced::advanced::image")
|
||
: Load and draw raster graphics.
|
||
|
||
[layout](layout/index.html "mod iced::advanced::layout")
|
||
: Position your widgets properly.
|
||
|
||
[mouse](mouse/index.html "mod iced::advanced::mouse")
|
||
: Handle mouse events.
|
||
|
||
[overlay](overlay/index.html "mod iced::advanced::overlay")
|
||
: Display interactive elements on top of other widgets.
|
||
|
||
[renderer](renderer/index.html "mod iced::advanced::renderer")
|
||
: Write your own renderer.
|
||
|
||
[subscription](subscription/index.html "mod iced::advanced::subscription")
|
||
: Write your own subscriptions.
|
||
|
||
[svg](svg/index.html "mod iced::advanced::svg")
|
||
: Load and draw vector graphics.
|
||
|
||
[text](text/index.html "mod iced::advanced::text")
|
||
: Draw and interact with text.
|
||
|
||
[widget](widget/index.html "mod iced::advanced::widget")
|
||
: Create custom widgets and operate on them.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Layout](struct.Layout.html "struct iced::advanced::Layout")
|
||
: The bounds of a [`Node`](layout/struct.Node.html "struct iced::advanced::layout::Node") and its children, using absolute coordinates.
|
||
|
||
[Shell](struct.Shell.html "struct iced::advanced::Shell")
|
||
: A connection to the state of a shell.
|
||
|
||
[Text](struct.Text.html "struct iced::advanced::Text")
|
||
: A paragraph.
|
||
|
||
## Traits[§](#traits)
|
||
|
||
[Clipboard](trait.Clipboard.html "trait iced::advanced::Clipboard")
|
||
: A buffer for short-term storage and transfer within and between
|
||
applications.
|
||
|
||
[Overlay](trait.Overlay.html "trait iced::advanced::Overlay")
|
||
: An interactive component that can be displayed on top of other widgets.
|
||
|
||
[Renderer](trait.Renderer.html "trait iced::advanced::Renderer")
|
||
: A component that can be used by widgets to draw themselves on a screen.
|
||
|
||
[Widget](trait.Widget.html "trait iced::advanced::Widget")
|
||
: A component that displays information and allows interaction.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/application/index.html](https://docs.rs/iced/0.13.1/iced/application/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module applicationCopy item path
|
||
|
||
[Source](../../src/iced/application.rs.html#1-486)
|
||
|
||
Expand description
|
||
|
||
Create and run iced applications step by step.
|
||
|
||
## [§](#example)Example
|
||
|
||
```
|
||
use iced::widget::{button, column, text, Column};
|
||
use iced::Theme;
|
||
|
||
pub fn main() -> iced::Result {
|
||
iced::application("A counter", update, view)
|
||
.theme(|_| Theme::Dark)
|
||
.centered()
|
||
.run()
|
||
}
|
||
|
||
#[derive(Debug, Clone)]
|
||
enum Message {
|
||
Increment,
|
||
}
|
||
|
||
fn update(value: &mut u64, message: Message) {
|
||
match message {
|
||
Message::Increment => *value += 1,
|
||
}
|
||
}
|
||
|
||
fn view(value: &u64) -> Column<Message> {
|
||
column![
|
||
text(value),
|
||
button("+").on_press(Message::Increment),
|
||
]
|
||
}
|
||
```
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Appearance](struct.Appearance.html "struct iced::application::Appearance")
|
||
: The appearance of a program.
|
||
|
||
[Application](struct.Application.html "struct iced::application::Application")
|
||
: The underlying definition and configuration of an iced application.
|
||
|
||
## Traits[§](#traits)
|
||
|
||
[DefaultStyle](trait.DefaultStyle.html "trait iced::application::DefaultStyle")
|
||
: The default style of a [`Program`](https://docs.rs/iced_winit/0.13.0/x86_64-unknown-linux-gnu/iced_winit/program/trait.Program.html "trait iced_winit::program::Program").
|
||
|
||
[Title](trait.Title.html "trait iced::application::Title")
|
||
: The title logic of some [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Update](trait.Update.html "trait iced::application::Update")
|
||
: The update logic of some [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[View](trait.View.html "trait iced::application::View")
|
||
: The view logic of some [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
## Functions[§](#functions)
|
||
|
||
[application](fn.application.html "fn iced::application::application")
|
||
: Creates an iced [`Application`](struct.Application.html "struct iced::application::Application") given its title, update, and view logic.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/application/struct.Application.html](https://docs.rs/iced/0.13.1/iced/application/struct.Application.html)
|
||
|
||
[iced](../index.html)::[application](index.html)
|
||
|
||
# Struct ApplicationCopy item path
|
||
|
||
[Source](../../src/iced/application.rs.html#148-152)
|
||
|
||
```
|
||
pub struct Application<P: Program> { /* private fields */ }
|
||
```
|
||
|
||
Expand description
|
||
|
||
The underlying definition and configuration of an iced application.
|
||
|
||
You can use this API to create and run iced applications
|
||
step by step—without coupling your logic to a trait
|
||
or a specific type.
|
||
|
||
You can create an [`Application`](struct.Application.html "struct iced::application::Application") with the [`application`](../fn.application.html "fn iced::application") helper.
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](../../src/iced/application.rs.html#154-397)[§](#impl-Application%3CP%3E)
|
||
|
||
### impl<P: Program> [Application](struct.Application.html "struct iced::application::Application")<P>
|
||
|
||
[Source](../../src/iced/application.rs.html#162-168)
|
||
|
||
#### pub fn [run](#method.run)(self) -> [Result](../type.Result.html "type iced::Result") where Self: 'static, P::State: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
Runs the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
The state of the [`Application`](struct.Application.html "struct iced::application::Application") must implement [`Default`](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default").
|
||
If your state does not implement [`Default`](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"), use [`run_with`](struct.Application.html#method.run_with "method iced::application::Application::run_with")
|
||
instead.
|
||
|
||
[Source](../../src/iced/application.rs.html#171-178)
|
||
|
||
#### pub fn [run\_with](#method.run_with)<I>(self, initialize: I) -> [Result](../type.Result.html "type iced::Result") where Self: 'static, I: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")() -> (P::State, [Task](../struct.Task.html "struct iced::Task")<P::Message>) + 'static,
|
||
|
||
Runs the [`Application`](struct.Application.html "struct iced::application::Application") with a closure that creates the initial state.
|
||
|
||
[Source](../../src/iced/application.rs.html#181-183)
|
||
|
||
#### pub fn [settings](#method.settings)(self, settings: [Settings](../settings/struct.Settings.html "struct iced::settings::Settings")) -> Self
|
||
|
||
Sets the [`Settings`](../settings/struct.Settings.html "struct iced::settings::Settings") that will be used to run the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#186-194)
|
||
|
||
#### pub fn [antialiasing](#method.antialiasing)(self, antialiasing: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> Self
|
||
|
||
Sets the [`Settings::antialiasing`](../settings/struct.Settings.html#structfield.antialiasing "field iced::settings::Settings::antialiasing") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#197-205)
|
||
|
||
#### pub fn [default\_font](#method.default_font)(self, default\_font: [Font](../struct.Font.html "struct iced::Font")) -> Self
|
||
|
||
Sets the default [`Font`](../struct.Font.html "struct iced::Font") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#208-211)
|
||
|
||
#### pub fn [font](#method.font)(self, font: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Cow](https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html "enum alloc::borrow::Cow")<'static, [[u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)]>>) -> Self
|
||
|
||
Adds a font to the list of fonts that will be loaded at the start of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#216-218)
|
||
|
||
#### pub fn [window](#method.window)(self, window: [Settings](../window/struct.Settings.html "struct iced::window::Settings")) -> Self
|
||
|
||
Sets the [`window::Settings`](../window/struct.Settings.html "struct iced::window::Settings") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
Overwrites any previous [`window::Settings`](../window/struct.Settings.html "struct iced::window::Settings").
|
||
|
||
[Source](../../src/iced/application.rs.html#221-229)
|
||
|
||
#### pub fn [centered](#method.centered)(self) -> Self
|
||
|
||
Sets the [`window::Settings::position`](../window/struct.Settings.html#structfield.position "field iced::window::Settings::position") to [`window::Position::Centered`](../window/enum.Position.html#variant.Centered "variant iced::window::Position::Centered") in the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#232-240)
|
||
|
||
#### pub fn [exit\_on\_close\_request](#method.exit_on_close_request)(self, exit\_on\_close\_request: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> Self
|
||
|
||
Sets the [`window::Settings::exit_on_close_request`](../window/struct.Settings.html#structfield.exit_on_close_request "field iced::window::Settings::exit_on_close_request") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#243-251)
|
||
|
||
#### pub fn [window\_size](#method.window_size)(self, size: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Size](../struct.Size.html "struct iced::Size")>) -> Self
|
||
|
||
Sets the [`window::Settings::size`](../window/struct.Settings.html#structfield.size "field iced::window::Settings::size") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#254-262)
|
||
|
||
#### pub fn [transparent](#method.transparent)(self, transparent: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> Self
|
||
|
||
Sets the [`window::Settings::transparent`](../window/struct.Settings.html#structfield.transparent "field iced::window::Settings::transparent") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#265-273)
|
||
|
||
#### pub fn [resizable](#method.resizable)(self, resizable: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> Self
|
||
|
||
Sets the [`window::Settings::resizable`](../window/struct.Settings.html#structfield.resizable "field iced::window::Settings::resizable") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#276-284)
|
||
|
||
#### pub fn [decorations](#method.decorations)(self, decorations: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> Self
|
||
|
||
Sets the [`window::Settings::decorations`](../window/struct.Settings.html#structfield.decorations "field iced::window::Settings::decorations") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#287-295)
|
||
|
||
#### pub fn [position](#method.position)(self, position: [Position](../window/enum.Position.html "enum iced::window::Position")) -> Self
|
||
|
||
Sets the [`window::Settings::position`](../window/struct.Settings.html#structfield.position "field iced::window::Settings::position") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#298-306)
|
||
|
||
#### pub fn [level](#method.level)(self, level: [Level](../window/enum.Level.html "enum iced::window::Level")) -> Self
|
||
|
||
Sets the [`window::Settings::level`](../window/struct.Settings.html#structfield.level "field iced::window::Settings::level") of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#325-336)
|
||
|
||
#### pub fn [subscription](#method.subscription)( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&P::State) -> [Subscription](../struct.Subscription.html "struct iced::Subscription")<P::Message>, ) -> [Application](struct.Application.html "struct iced::application::Application")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>>
|
||
|
||
Sets the subscription logic of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#339-350)
|
||
|
||
#### pub fn [theme](#method.theme)( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&P::State) -> P::Theme, ) -> [Application](struct.Application.html "struct iced::application::Application")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>>
|
||
|
||
Sets the theme logic of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#353-364)
|
||
|
||
#### pub fn [style](#method.style)( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&P::State, &P::Theme) -> [Appearance](struct.Appearance.html "struct iced::application::Appearance"), ) -> [Application](struct.Application.html "struct iced::application::Application")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>>
|
||
|
||
Sets the style logic of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#367-380)
|
||
|
||
#### pub fn [scale\_factor](#method.scale_factor)( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&P::State) -> [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html), ) -> [Application](struct.Application.html "struct iced::application::Application")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>>
|
||
|
||
Sets the scale factor of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
[Source](../../src/iced/application.rs.html#383-396)
|
||
|
||
#### pub fn [executor](#method.executor)<E>( self, ) -> [Application](struct.Application.html "struct iced::application::Application")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>> where E: [Executor](../trait.Executor.html "trait iced::Executor"),
|
||
|
||
Sets the executor of the [`Application`](struct.Application.html "struct iced::application::Application").
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](../../src/iced/application.rs.html#147)[§](#impl-Debug-for-Application%3CP%3E)
|
||
|
||
### impl<P: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") + Program> [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Application](struct.Application.html "struct iced::application::Application")<P>
|
||
|
||
[Source](../../src/iced/application.rs.html#147)[§](#method.fmt)
|
||
|
||
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")<'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/fmt/type.Result.html "type core::fmt::Result")
|
||
|
||
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Application%3CP%3E)
|
||
|
||
### impl<P> [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Application](struct.Application.html "struct iced::application::Application")<P> where P: [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze"),
|
||
|
||
[§](#impl-RefUnwindSafe-for-Application%3CP%3E)
|
||
|
||
### impl<P> [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [Application](struct.Application.html "struct iced::application::Application")<P> where P: [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe"),
|
||
|
||
[§](#impl-Send-for-Application%3CP%3E)
|
||
|
||
### impl<P> [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Application](struct.Application.html "struct iced::application::Application")<P> where P: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[§](#impl-Sync-for-Application%3CP%3E)
|
||
|
||
### impl<P> [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [Application](struct.Application.html "struct iced::application::Application")<P> where P: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[§](#impl-Unpin-for-Application%3CP%3E)
|
||
|
||
### impl<P> [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Application](struct.Application.html "struct iced::application::Application")<P> where P: [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin"),
|
||
|
||
[§](#impl-UnwindSafe-for-Application%3CP%3E)
|
||
|
||
### impl<P> [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [Application](struct.Application.html "struct iced::application::Application")<P> where P: [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe"),
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#203)[§](#impl-DowncastSync-for-T)
|
||
|
||
### impl<T> [DowncastSync](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html "trait downcast_rs::DowncastSync") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#204)[§](#method.into_any_arc)
|
||
|
||
#### fn [into\_any\_arc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc)(self: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<T>) -> [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync")>
|
||
|
||
Convert `Arc<Trait>` (where `Trait: Downcast`) to `Arc<Any>`. `Arc<Any>` can then be
|
||
further `downcast` into `Arc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#8)[§](#impl-MaybeSend-for-T)
|
||
|
||
### impl<T> [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#15)[§](#impl-MaybeSync-for-T)
|
||
|
||
### impl<T> [MaybeSync](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSync.html "trait iced_futures::maybe::platform::MaybeSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7040)[§](#impl-WasmNotSend-for-T)
|
||
|
||
### impl<T> [WasmNotSend](../widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7024)[§](#impl-WasmNotSendSync-for-T)
|
||
|
||
### impl<T> [WasmNotSendSync](../widget/shader/wgpu/trait.WasmNotSendSync.html "trait iced::widget::shader::wgpu::WasmNotSendSync") for T where T: [WasmNotSend](../widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") + [WasmNotSync](../widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7073)[§](#impl-WasmNotSync-for-T)
|
||
|
||
### impl<T> [WasmNotSync](../widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/widget/index.html](https://docs.rs/iced/0.13.1/iced/widget/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module widgetCopy item path
|
||
|
||
[Source](../../src/iced/lib.rs.html#603)
|
||
|
||
Expand description
|
||
|
||
Use the built-in widgets or create your own.
|
||
|
||
## Modules[§](#modules)
|
||
|
||
[button](button/index.html "mod iced::widget::button")
|
||
: Buttons allow your users to perform actions by pressing them.
|
||
|
||
[canvas](canvas/index.html "mod iced::widget::canvas")
|
||
: Canvases can be leveraged to draw interactive 2D graphics.
|
||
|
||
[checkbox](checkbox/index.html "mod iced::widget::checkbox")
|
||
: Checkboxes can be used to let users make binary choices.
|
||
|
||
[combo\_box](combo_box/index.html "mod iced::widget::combo_box")
|
||
: Combo boxes display a dropdown list of searchable and selectable options.
|
||
|
||
[container](container/index.html "mod iced::widget::container")
|
||
: Containers let you align a widget inside their boundaries.
|
||
|
||
[image](image/index.html "mod iced::widget::image")
|
||
: Images display raster graphics in different formats (PNG, JPG, etc.).
|
||
|
||
[keyed](keyed/index.html "mod iced::widget::keyed")
|
||
: Keyed widgets can provide hints to ensure continuity.
|
||
|
||
[markdown](markdown/index.html "mod iced::widget::markdown")
|
||
: Markdown widgets can parse and display Markdown.
|
||
|
||
[overlay](overlay/index.html "mod iced::widget::overlay")
|
||
: Display interactive elements on top of other widgets.
|
||
|
||
[pane\_grid](pane_grid/index.html "mod iced::widget::pane_grid")
|
||
: Pane grids let your users split regions of your application and organize layout dynamically.
|
||
|
||
[pick\_list](pick_list/index.html "mod iced::widget::pick_list")
|
||
: Pick lists display a dropdown list of selectable options.
|
||
|
||
[progress\_bar](progress_bar/index.html "mod iced::widget::progress_bar")
|
||
: Progress bars visualize the progression of an extended computer operation, such as a download, file transfer, or installation.
|
||
|
||
[qr\_code](qr_code/index.html "mod iced::widget::qr_code")
|
||
: QR codes display information in a type of two-dimensional matrix barcode.
|
||
|
||
[radio](radio/index.html "mod iced::widget::radio")
|
||
: Radio buttons let users choose a single option from a bunch of options.
|
||
|
||
[rule](rule/index.html "mod iced::widget::rule")
|
||
: Rules divide space horizontally or vertically.
|
||
|
||
[scrollable](scrollable/index.html "mod iced::widget::scrollable")
|
||
: Scrollables let users navigate an endless amount of content with a scrollbar.
|
||
|
||
[shader](shader/index.html "mod iced::widget::shader")
|
||
: A custom shader widget for wgpu applications.
|
||
|
||
[slider](slider/index.html "mod iced::widget::slider")
|
||
: Sliders let users set a value by moving an indicator.
|
||
|
||
[svg](svg/index.html "mod iced::widget::svg")
|
||
: Svg widgets display vector graphics in your application.
|
||
|
||
[text](text/index.html "mod iced::widget::text")
|
||
: Draw and interact with text.
|
||
|
||
[text\_editor](text_editor/index.html "mod iced::widget::text_editor")
|
||
: Text editors display a multi-line text input for text editing.
|
||
|
||
[text\_input](text_input/index.html "mod iced::widget::text_input")
|
||
: Text inputs display fields that can be filled with text.
|
||
|
||
[theme](theme/index.html "mod iced::widget::theme")
|
||
: Use the built-in theme and styles.
|
||
|
||
[toggler](toggler/index.html "mod iced::widget::toggler")
|
||
: Togglers let users make binary choices by toggling a switch.
|
||
|
||
[tooltip](tooltip/index.html "mod iced::widget::tooltip")
|
||
: Tooltips display a hint of information over some element when hovered.
|
||
|
||
[vertical\_slider](vertical_slider/index.html "mod iced::widget::vertical_slider")
|
||
: Sliders let users set a value by moving an indicator.
|
||
|
||
## Macros[§](#macros)
|
||
|
||
[column](macro.column.html "macro iced::widget::column")
|
||
: Creates a [`Column`](struct.Column.html "struct iced::widget::Column") with the given children.
|
||
|
||
[keyed\_column](macro.keyed_column.html "macro iced::widget::keyed_column")
|
||
: Creates a keyed [`Column`](keyed/struct.Column.html "struct iced::widget::keyed::Column") with the given children.
|
||
|
||
[rich\_text](macro.rich_text.html "macro iced::widget::rich_text")
|
||
: Creates some [`Rich`](text/struct.Rich.html "struct iced::widget::text::Rich") text with the given spans.
|
||
|
||
[row](macro.row.html "macro iced::widget::row")
|
||
: Creates a [`Row`](struct.Row.html "struct iced::widget::Row") with the given children.
|
||
|
||
[stack](macro.stack.html "macro iced::widget::stack")
|
||
: Creates a [`Stack`](struct.Stack.html "struct iced::widget::Stack") with the given children.
|
||
|
||
[text](macro.text.html "macro iced::widget::text")
|
||
: Creates a new [`Text`](../advanced/widget/struct.Text.html "struct iced::advanced::widget::Text") widget with the provided content.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Button](struct.Button.html "struct iced::widget::Button")
|
||
: A generic widget that produces a message when pressed.
|
||
|
||
[Canvas](struct.Canvas.html "struct iced::widget::Canvas")
|
||
: A widget capable of drawing 2D graphics.
|
||
|
||
[Checkbox](struct.Checkbox.html "struct iced::widget::Checkbox")
|
||
: A box that can be checked.
|
||
|
||
[Column](struct.Column.html "struct iced::widget::Column")
|
||
: A container that distributes its contents vertically.
|
||
|
||
[ComboBox](struct.ComboBox.html "struct iced::widget::ComboBox")
|
||
: A widget for searching and selecting a single value from a list of options.
|
||
|
||
[Container](struct.Container.html "struct iced::widget::Container")
|
||
: A widget that aligns its contents inside of its boundaries.
|
||
|
||
[Image](struct.Image.html "struct iced::widget::Image")
|
||
: A frame that displays an image while keeping aspect ratio.
|
||
|
||
[Lazy](struct.Lazy.html "struct iced::widget::Lazy")
|
||
: A widget that only rebuilds its contents when necessary.
|
||
|
||
[MouseArea](struct.MouseArea.html "struct iced::widget::MouseArea")
|
||
: Emit messages on mouse events.
|
||
|
||
[PaneGrid](struct.PaneGrid.html "struct iced::widget::PaneGrid")
|
||
: A collection of panes distributed using either vertical or horizontal splits
|
||
to completely fill the space available.
|
||
|
||
[PickList](struct.PickList.html "struct iced::widget::PickList")
|
||
: A widget for selecting a single value from a list of options.
|
||
|
||
[ProgressBar](struct.ProgressBar.html "struct iced::widget::ProgressBar")
|
||
: A bar that displays progress.
|
||
|
||
[QRCode](struct.QRCode.html "struct iced::widget::QRCode")
|
||
: A type of matrix barcode consisting of squares arranged in a grid which
|
||
can be read by an imaging device, such as a camera.
|
||
|
||
[Radio](struct.Radio.html "struct iced::widget::Radio")
|
||
: A circular button representing a choice.
|
||
|
||
[Responsive](struct.Responsive.html "struct iced::widget::Responsive")
|
||
: A widget that is aware of its dimensions.
|
||
|
||
[Row](struct.Row.html "struct iced::widget::Row")
|
||
: A container that distributes its contents horizontally.
|
||
|
||
[Rule](struct.Rule.html "struct iced::widget::Rule")
|
||
: Display a horizontal or vertical rule for dividing content.
|
||
|
||
[Scrollable](struct.Scrollable.html "struct iced::widget::Scrollable")
|
||
: A widget that can vertically display an infinite amount of content with a
|
||
scrollbar.
|
||
|
||
[Shader](struct.Shader.html "struct iced::widget::Shader")
|
||
: A widget which can render custom shaders with Iced’s `wgpu` backend.
|
||
|
||
[Slider](struct.Slider.html "struct iced::widget::Slider")
|
||
: An horizontal bar and a handle that selects a single value from a range of
|
||
values.
|
||
|
||
[Space](struct.Space.html "struct iced::widget::Space")
|
||
: An amount of empty space.
|
||
|
||
[Stack](struct.Stack.html "struct iced::widget::Stack")
|
||
: A container that displays children on top of each other.
|
||
|
||
[Svg](struct.Svg.html "struct iced::widget::Svg")
|
||
: A vector graphics image.
|
||
|
||
[TextEditor](struct.TextEditor.html "struct iced::widget::TextEditor")
|
||
: A multi-line text input.
|
||
|
||
[TextInput](struct.TextInput.html "struct iced::widget::TextInput")
|
||
: A field that can be filled with text.
|
||
|
||
[Themer](struct.Themer.html "struct iced::widget::Themer")
|
||
: A widget that applies any `Theme` to its contents.
|
||
|
||
[Toggler](struct.Toggler.html "struct iced::widget::Toggler")
|
||
: A toggler widget.
|
||
|
||
[Tooltip](struct.Tooltip.html "struct iced::widget::Tooltip")
|
||
: An element to display a widget over another.
|
||
|
||
[VerticalSlider](struct.VerticalSlider.html "struct iced::widget::VerticalSlider")
|
||
: An vertical bar and a handle that selects a single value from a range of
|
||
values.
|
||
|
||
## Enums[§](#enums)
|
||
|
||
[Theme](enum.Theme.html "enum iced::widget::Theme")
|
||
: A built-in theme.
|
||
|
||
## Traits[§](#traits)
|
||
|
||
[Component](trait.Component.html "trait iced::widget::Component")Deprecated
|
||
: A reusable, custom widget that uses The Elm Architecture.
|
||
|
||
## Functions[§](#functions)
|
||
|
||
[button](fn.button.html "fn iced::widget::button")
|
||
: Creates a new [`Button`](struct.Button.html "struct iced::widget::Button") with the provided content.
|
||
|
||
[canvas](fn.canvas.html "fn iced::widget::canvas")
|
||
: Creates a new [`Canvas`](struct.Canvas.html "struct iced::widget::Canvas").
|
||
|
||
[center](fn.center.html "fn iced::widget::center")
|
||
: Creates a new [`Container`](struct.Container.html "struct iced::widget::Container") that fills all the available space
|
||
and centers its contents inside.
|
||
|
||
[checkbox](fn.checkbox.html "fn iced::widget::checkbox")
|
||
: Creates a new [`Checkbox`](struct.Checkbox.html "struct iced::widget::Checkbox").
|
||
|
||
[column](fn.column.html "fn iced::widget::column")
|
||
: Creates a new [`Column`](struct.Column.html "struct iced::widget::Column") with the given children.
|
||
|
||
[combo\_box](fn.combo_box.html "fn iced::widget::combo_box")
|
||
: Creates a new [`ComboBox`](struct.ComboBox.html "struct iced::widget::ComboBox").
|
||
|
||
[component](fn.component.html "fn iced::widget::component")Deprecated
|
||
: Turns an implementor of [`Component`](trait.Component.html "trait iced::widget::Component") into an [`Element`](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element") that can be
|
||
embedded in any application.
|
||
|
||
[container](fn.container.html "fn iced::widget::container")
|
||
: Creates a new [`Container`](struct.Container.html "struct iced::widget::Container") with the provided content.
|
||
|
||
[focus\_next](fn.focus_next.html "fn iced::widget::focus_next")
|
||
: Focuses the next focusable widget.
|
||
|
||
[focus\_previous](fn.focus_previous.html "fn iced::widget::focus_previous")
|
||
: Focuses the previous focusable widget.
|
||
|
||
[horizontal\_rule](fn.horizontal_rule.html "fn iced::widget::horizontal_rule")
|
||
: Creates a horizontal [`Rule`](struct.Rule.html "struct iced::widget::Rule") with the given height.
|
||
|
||
[horizontal\_space](fn.horizontal_space.html "fn iced::widget::horizontal_space")
|
||
: Creates a new [`Space`](struct.Space.html "struct iced::widget::Space") widget that fills the available
|
||
horizontal space.
|
||
|
||
[hover](fn.hover.html "fn iced::widget::hover")
|
||
: Displays a widget on top of another one, only when the base widget is hovered.
|
||
|
||
[iced](fn.iced.html "fn iced::widget::iced")
|
||
: Creates an [`Element`](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element") that displays the iced logo with the given `text_size`.
|
||
|
||
[image](fn.image.html "fn iced::widget::image")
|
||
: Creates a new [`Image`](struct.Image.html "struct iced::widget::Image").
|
||
|
||
[keyed\_column](fn.keyed_column.html "fn iced::widget::keyed_column")
|
||
: Creates a new [`keyed::Column`](keyed/struct.Column.html "struct iced::widget::keyed::Column") from an iterator of elements.
|
||
|
||
[lazy](fn.lazy.html "fn iced::widget::lazy")
|
||
: Creates a new [`Lazy`](struct.Lazy.html "struct iced::widget::Lazy") widget with the given data `Dependency` and a
|
||
closure that can turn this data into a widget tree.
|
||
|
||
[markdown](fn.markdown.html "fn iced::widget::markdown")
|
||
: Display a bunch of Markdown items.
|
||
|
||
[mouse\_area](fn.mouse_area.html "fn iced::widget::mouse_area")
|
||
: A container intercepting mouse events.
|
||
|
||
[opaque](fn.opaque.html "fn iced::widget::opaque")
|
||
: Wraps the given widget and captures any mouse button presses inside the bounds of
|
||
the widget—effectively making it *opaque*.
|
||
|
||
[pane\_grid](fn.pane_grid.html "fn iced::widget::pane_grid")
|
||
: Creates a [`PaneGrid`](struct.PaneGrid.html "struct iced::widget::PaneGrid") with the given [`pane_grid::State`](pane_grid/struct.State.html "struct iced::widget::pane_grid::State") and view function.
|
||
|
||
[pick\_list](fn.pick_list.html "fn iced::widget::pick_list")
|
||
: Creates a new [`PickList`](struct.PickList.html "struct iced::widget::PickList").
|
||
|
||
[progress\_bar](fn.progress_bar.html "fn iced::widget::progress_bar")
|
||
: Creates a new [`ProgressBar`](struct.ProgressBar.html "struct iced::widget::ProgressBar").
|
||
|
||
[qr\_code](fn.qr_code.html "fn iced::widget::qr_code")
|
||
: Creates a new [`QRCode`](struct.QRCode.html "struct iced::widget::QRCode") widget from the given [`Data`](qr_code/struct.Data.html "struct iced::widget::qr_code::Data").
|
||
|
||
[radio](fn.radio.html "fn iced::widget::radio")
|
||
: Creates a new [`Radio`](struct.Radio.html "struct iced::widget::Radio").
|
||
|
||
[responsive](fn.responsive.html "fn iced::widget::responsive")
|
||
: Creates a new [`Responsive`](struct.Responsive.html "struct iced::widget::Responsive") widget with a closure that produces its
|
||
contents.
|
||
|
||
[rich\_text](fn.rich_text.html "fn iced::widget::rich_text")
|
||
: Creates a new [`Rich`](text/struct.Rich.html "struct iced::widget::text::Rich") text widget with the provided spans.
|
||
|
||
[row](fn.row.html "fn iced::widget::row")
|
||
: Creates a new [`Row`](struct.Row.html "struct iced::widget::Row") from an iterator.
|
||
|
||
[scrollable](fn.scrollable.html "fn iced::widget::scrollable")
|
||
: Creates a new [`Scrollable`](struct.Scrollable.html "struct iced::widget::Scrollable") with the provided content.
|
||
|
||
[shader](fn.shader.html "fn iced::widget::shader")
|
||
: Creates a new [`Shader`](struct.Shader.html "struct iced::widget::Shader").
|
||
|
||
[slider](fn.slider.html "fn iced::widget::slider")
|
||
: Creates a new [`Slider`](struct.Slider.html "struct iced::widget::Slider").
|
||
|
||
[span](fn.span.html "fn iced::widget::span")
|
||
: Creates a new [`Span`](../advanced/text/struct.Span.html "struct iced::advanced::text::Span") of text with the provided content.
|
||
|
||
[stack](fn.stack.html "fn iced::widget::stack")
|
||
: Creates a new [`Stack`](struct.Stack.html "struct iced::widget::Stack") with the given children.
|
||
|
||
[svg](fn.svg.html "fn iced::widget::svg")
|
||
: Creates a new [`Svg`](struct.Svg.html "struct iced::widget::Svg") widget from the given [`Handle`](../advanced/svg/struct.Handle.html "struct iced::advanced::svg::Handle").
|
||
|
||
[text](fn.text.html "fn iced::widget::text")
|
||
: Creates a new [`Text`](type.Text.html "type iced::widget::Text") widget with the provided content.
|
||
|
||
[text\_editor](fn.text_editor.html "fn iced::widget::text_editor")
|
||
: Creates a new [`TextEditor`](struct.TextEditor.html "struct iced::widget::TextEditor").
|
||
|
||
[text\_input](fn.text_input.html "fn iced::widget::text_input")
|
||
: Creates a new [`TextInput`](struct.TextInput.html "struct iced::widget::TextInput").
|
||
|
||
[themer](fn.themer.html "fn iced::widget::themer")
|
||
: A widget that applies any `Theme` to its contents.
|
||
|
||
[toggler](fn.toggler.html "fn iced::widget::toggler")
|
||
: Creates a new [`Toggler`](struct.Toggler.html "struct iced::widget::Toggler").
|
||
|
||
[tooltip](fn.tooltip.html "fn iced::widget::tooltip")
|
||
: Creates a new [`Tooltip`](struct.Tooltip.html "struct iced::widget::Tooltip") for the provided content with the given
|
||
[`Element`](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element") and [`tooltip::Position`](tooltip/enum.Position.html "enum iced::widget::tooltip::Position").
|
||
|
||
[value](fn.value.html "fn iced::widget::value")
|
||
: Creates a new [`Text`](type.Text.html "type iced::widget::Text") widget that displays the provided value.
|
||
|
||
[vertical\_rule](fn.vertical_rule.html "fn iced::widget::vertical_rule")
|
||
: Creates a vertical [`Rule`](struct.Rule.html "struct iced::widget::Rule") with the given width.
|
||
|
||
[vertical\_slider](fn.vertical_slider.html "fn iced::widget::vertical_slider")
|
||
: Creates a new [`VerticalSlider`](struct.VerticalSlider.html "struct iced::widget::VerticalSlider").
|
||
|
||
[vertical\_space](fn.vertical_space.html "fn iced::widget::vertical_space")
|
||
: Creates a new [`Space`](struct.Space.html "struct iced::widget::Space") widget that fills the available
|
||
vertical space.
|
||
|
||
## Type Aliases[§](#types)
|
||
|
||
[Renderer](type.Renderer.html "type iced::widget::Renderer")
|
||
: The default graphics renderer for [`iced`](https://github.com/iced-rs/iced).
|
||
|
||
[Text](type.Text.html "type iced::widget::Text")
|
||
: A bunch of text.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/widget/struct.Container.html](https://docs.rs/iced/0.13.1/iced/widget/struct.Container.html)
|
||
|
||
[iced](../index.html)::[widget](index.html)
|
||
|
||
# Struct ContainerCopy item path
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#61-66)
|
||
|
||
```
|
||
pub struct Container<'a, Message, Theme = Theme, Renderer = Renderer<Renderer, Renderer>>
|
||
|
||
where
|
||
Theme: Catalog,
|
||
Renderer: Renderer,
|
||
|
||
{ /* private fields */ }
|
||
```
|
||
|
||
Expand description
|
||
|
||
A widget that aligns its contents inside of its boundaries.
|
||
|
||
## [§](#example)Example
|
||
|
||
```
|
||
use iced::widget::container;
|
||
|
||
enum Message {
|
||
// ...
|
||
}
|
||
|
||
fn view(state: &State) -> Element<'_, Message> {
|
||
container("This text is centered inside a rounded box!")
|
||
.padding(10)
|
||
.center(800)
|
||
.style(container::rounded_box)
|
||
.into()
|
||
}
|
||
```
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#83-86)[§](#impl-Container%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer> where Theme: [Catalog](container/trait.Catalog.html "trait iced::widget::container::Catalog"), Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#89-91)
|
||
|
||
#### pub fn [new](#method.new)( content: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Creates a [`Container`](struct.Container.html "struct iced::widget::Container") with the given content.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#111)
|
||
|
||
#### pub fn [id](#method.id)(self, id: [Id](container/struct.Id.html "struct iced::widget::container::Id")) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the [`Id`](container/struct.Id.html "struct iced::widget::container::Id") of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#117)
|
||
|
||
#### pub fn [padding](#method.padding)<P>(self, padding: P) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer> where P: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Padding](../struct.Padding.html "struct iced::Padding")>,
|
||
|
||
Sets the [`Padding`](../struct.Padding.html "struct iced::Padding") of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#123)
|
||
|
||
#### pub fn [width](#method.width)( self, width: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the width of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#129)
|
||
|
||
#### pub fn [height](#method.height)( self, height: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the height of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#135)
|
||
|
||
#### pub fn [max\_width](#method.max_width)( self, max\_width: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Pixels](../struct.Pixels.html "struct iced::Pixels")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the maximum width of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#141)
|
||
|
||
#### pub fn [max\_height](#method.max_height)( self, max\_height: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Pixels](../struct.Pixels.html "struct iced::Pixels")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the maximum height of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#147)
|
||
|
||
#### pub fn [center\_x](#method.center_x)( self, width: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the width of the [`Container`](struct.Container.html "struct iced::widget::Container") and centers its contents horizontally.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#152)
|
||
|
||
#### pub fn [center\_y](#method.center_y)( self, height: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the height of the [`Container`](struct.Container.html "struct iced::widget::Container") and centers its contents vertically.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#163)
|
||
|
||
#### pub fn [center](#method.center)( self, length: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Centers the contents in both the horizontal and vertical axes of the
|
||
[`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
This is equivalent to chaining [`center_x`](struct.Container.html#method.center_x "method iced::widget::Container::center_x") and [`center_y`](struct.Container.html#method.center_y "method iced::widget::Container::center_y").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#170)
|
||
|
||
#### pub fn [align\_left](#method.align_left)( self, width: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Aligns the contents of the [`Container`](struct.Container.html "struct iced::widget::Container") to the left.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#175)
|
||
|
||
#### pub fn [align\_right](#method.align_right)( self, width: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Aligns the contents of the [`Container`](struct.Container.html "struct iced::widget::Container") to the right.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#180)
|
||
|
||
#### pub fn [align\_top](#method.align_top)( self, height: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Aligns the contents of the [`Container`](struct.Container.html "struct iced::widget::Container") to the top.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#185)
|
||
|
||
#### pub fn [align\_bottom](#method.align_bottom)( self, height: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Aligns the contents of the [`Container`](struct.Container.html "struct iced::widget::Container") to the bottom.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#190-193)
|
||
|
||
#### pub fn [align\_x](#method.align_x)( self, alignment: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Horizontal](../alignment/enum.Horizontal.html "enum iced::alignment::Horizontal")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the content alignment for the horizontal axis of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#199-202)
|
||
|
||
#### pub fn [align\_y](#method.align_y)( self, alignment: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Vertical](../alignment/enum.Vertical.html "enum iced::alignment::Vertical")>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the content alignment for the vertical axis of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#209)
|
||
|
||
#### pub fn [clip](#method.clip)(self, clip: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets whether the contents of the [`Container`](struct.Container.html "struct iced::widget::Container") should be clipped on
|
||
overflow.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#216-218)
|
||
|
||
#### pub fn [style](#method.style)( self, style: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")([&Theme](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Style](container/struct.Style.html "struct iced::widget::container::Style") + 'a, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer> where <Theme as [Catalog](container/trait.Catalog.html "trait iced::widget::container::Catalog")>::[Class](container/trait.Catalog.html#associatedtype.Class "type iced::widget::container::Catalog::Class")<'a>: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")([&Theme](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Style](container/struct.Style.html "struct iced::widget::container::Style") + 'a>>,
|
||
|
||
Sets the style of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#226)
|
||
|
||
#### pub fn [class](#method.class)( self, class: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<<Theme as [Catalog](container/trait.Catalog.html "trait iced::widget::container::Catalog")>::[Class](container/trait.Catalog.html#associatedtype.Class "type iced::widget::container::Catalog::Class")<'a>>, ) -> [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the style class of the [`Container`](struct.Container.html "struct iced::widget::Container").
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#393-398)[§](#impl-From%3CContainer%3C'a,+Message,+Theme,+Renderer%3E%3E-for-Element%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>> for [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer> where Message: 'a, Theme: [Catalog](container/trait.Catalog.html "trait iced::widget::container::Catalog") + 'a, Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer") + 'a,
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#400-402)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)( column: [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>, ) -> [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#232-236)[§](#impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Container%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Widget](../advanced/trait.Widget.html "trait iced::advanced::Widget")<Message, Theme, Renderer> for [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer> where Theme: [Catalog](container/trait.Catalog.html "trait iced::widget::container::Catalog"), Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#238)[§](#method.tag)
|
||
|
||
#### fn [tag](../advanced/trait.Widget.html#method.tag)(&self) -> [Tag](../advanced/widget/tree/struct.Tag.html "struct iced::advanced::widget::tree::Tag")
|
||
|
||
Returns the [`Tag`](../advanced/widget/tree/struct.Tag.html "struct iced::advanced::widget::tree::Tag") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#242)[§](#method.state)
|
||
|
||
#### fn [state](../advanced/trait.Widget.html#method.state)(&self) -> [State](../advanced/widget/tree/enum.State.html "enum iced::advanced::widget::tree::State")
|
||
|
||
Returns the [`State`](../advanced/widget/tree/enum.State.html "enum iced::advanced::widget::tree::State") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#246)[§](#method.children)
|
||
|
||
#### fn [children](../advanced/trait.Widget.html#method.children)(&self) -> [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec")<[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree")>
|
||
|
||
Returns the state [`Tree`](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree") of the children of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#250)[§](#method.diff)
|
||
|
||
#### fn [diff](../advanced/trait.Widget.html#method.diff)(&self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"))
|
||
|
||
Reconciles the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") with the provided [`Tree`](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#254)[§](#method.size)
|
||
|
||
#### fn [size](../advanced/trait.Widget.html#tymethod.size)(&self) -> [Size](../struct.Size.html "struct iced::Size")<[Length](../enum.Length.html "enum iced::Length")>
|
||
|
||
Returns the [`Size`](../struct.Size.html "struct iced::Size") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") in lengths.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#261-266)[§](#method.layout)
|
||
|
||
#### fn [layout](../advanced/trait.Widget.html#tymethod.layout)(&self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), limits: &[Limits](../advanced/layout/struct.Limits.html "struct iced::advanced::layout::Limits")) -> [Node](../advanced/layout/struct.Node.html "struct iced::advanced::layout::Node")
|
||
|
||
Returns the [`layout::Node`](../advanced/layout/struct.Node.html "struct iced::advanced::layout::Node") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#tymethod.layout)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#280-286)[§](#method.operate)
|
||
|
||
#### fn [operate](../advanced/trait.Widget.html#method.operate)( &self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), operation: &mut dyn [Operation](../advanced/widget/trait.Operation.html "trait iced::advanced::widget::Operation"), )
|
||
|
||
Applies an [`Operation`](../advanced/widget/trait.Operation.html "trait iced::advanced::widget::Operation") to the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#301-311)[§](#method.on_event)
|
||
|
||
#### fn [on\_event](../advanced/trait.Widget.html#method.on_event)( &mut self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), event: [Event](../enum.Event.html "enum iced::Event"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), clipboard: &mut dyn [Clipboard](../advanced/trait.Clipboard.html "trait iced::advanced::Clipboard"), shell: &mut [Shell](../advanced/struct.Shell.html "struct iced::advanced::Shell")<'\_, Message>, viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), ) -> [Status](../event/enum.Status.html "enum iced::event::Status")
|
||
|
||
Processes a runtime [`Event`](../enum.Event.html "enum iced::Event"). [Read more](../advanced/trait.Widget.html#method.on_event)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#324-331)[§](#method.mouse_interaction)
|
||
|
||
#### fn [mouse\_interaction](../advanced/trait.Widget.html#method.mouse_interaction)( &self, tree: &[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), ) -> [Interaction](../mouse/enum.Interaction.html "enum iced::mouse::Interaction")
|
||
|
||
Returns the current [`mouse::Interaction`](../mouse/enum.Interaction.html "enum iced::mouse::Interaction") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#method.mouse_interaction)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#341-350)[§](#method.draw)
|
||
|
||
#### fn [draw](../advanced/trait.Widget.html#tymethod.draw)( &self, tree: &[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), renderer: [&mut Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), theme: [&Theme](https://doc.rust-lang.org/nightly/std/primitive.reference.html), renderer\_style: &[Style](../advanced/renderer/struct.Style.html "struct iced::advanced::renderer::Style"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), )
|
||
|
||
Draws the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") using the associated `Renderer`.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#377-383)[§](#method.overlay)
|
||
|
||
#### fn [overlay](../advanced/trait.Widget.html#method.overlay)<'b>( &'b mut self, tree: &'b mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), translation: [Vector](../struct.Vector.html "struct iced::Vector"), ) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[Element](../advanced/overlay/struct.Element.html "struct iced::advanced::overlay::Element")<'b, Message, Theme, Renderer>>
|
||
|
||
Returns the overlay of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"), if there is any.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget.rs.html#53)[§](#method.size_hint)
|
||
|
||
#### fn [size\_hint](../advanced/trait.Widget.html#method.size_hint)(&self) -> [Size](../struct.Size.html "struct iced::Size")<[Length](../enum.Length.html "enum iced::Length")>
|
||
|
||
Returns a [`Size`](../struct.Size.html "struct iced::Size") hint for laying out the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#method.size_hint)
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Container%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer> where <Theme as [Catalog](container/trait.Catalog.html "trait iced::widget::container::Catalog")>::[Class](container/trait.Catalog.html#associatedtype.Class "type iced::widget::container::Catalog::Class")<'a>: [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze"),
|
||
|
||
[§](#impl-RefUnwindSafe-for-Container%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Send-for-Container%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Sync-for-Container%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Unpin-for-Container%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer> where <Theme as [Catalog](container/trait.Catalog.html "trait iced::widget::container::Catalog")>::[Class](container/trait.Catalog.html#associatedtype.Class "type iced::widget::container::Catalog::Class")<'a>: [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin"),
|
||
|
||
[§](#impl-UnwindSafe-for-Container%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Container](struct.Container.html "struct iced::widget::Container")<'a, Message, Theme, Renderer>
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from-1)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/widget/struct.Column.html](https://docs.rs/iced/0.13.1/iced/widget/struct.Column.html)
|
||
|
||
[iced](../index.html)::[widget](index.html)
|
||
|
||
# Struct ColumnCopy item path
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#37)
|
||
|
||
```
|
||
pub struct Column<'a, Message, Theme = Theme, Renderer = Renderer<Renderer, Renderer>> { /* private fields */ }
|
||
```
|
||
|
||
Expand description
|
||
|
||
A container that distributes its contents vertically.
|
||
|
||
## [§](#example)Example
|
||
|
||
```
|
||
use iced::widget::{button, column};
|
||
|
||
#[derive(Debug, Clone)]
|
||
enum Message {
|
||
// ...
|
||
}
|
||
|
||
fn view(state: &State) -> Element<'_, Message> {
|
||
column![
|
||
"I am on top!",
|
||
button("I am in the center!"),
|
||
"I am below.",
|
||
].into()
|
||
}
|
||
```
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#49-51)[§](#impl-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer> where Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#54)
|
||
|
||
#### pub fn [new](#method.new)() -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Creates an empty [`Column`](struct.Column.html "struct iced::widget::Column").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#59)
|
||
|
||
#### pub fn [with\_capacity](#method.with_capacity)(capacity: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Creates a [`Column`](struct.Column.html "struct iced::widget::Column") with the given capacity.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#64-66)
|
||
|
||
#### pub fn [with\_children](#method.with_children)( children: impl [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator")<Item = [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Creates a [`Column`](struct.Column.html "struct iced::widget::Column") with the given elements.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#79-81)
|
||
|
||
#### pub fn [from\_vec](#method.from_vec)( children: [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Creates a [`Column`](struct.Column.html "struct iced::widget::Column") from an already allocated [`Vec`](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec").
|
||
|
||
Keep in mind that the [`Column`](struct.Column.html "struct iced::widget::Column") will not inspect the [`Vec`](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec"), which means
|
||
it won’t automatically adapt to the sizing strategy of its contents.
|
||
|
||
If any of the children have a [`Length::Fill`](../enum.Length.html#variant.Fill "variant iced::Length::Fill") strategy, you will need to
|
||
call [`Column::width`](struct.Column.html#method.width "method iced::widget::Column::width") or [`Column::height`](struct.Column.html#method.height "method iced::widget::Column::height") accordingly.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#99)
|
||
|
||
#### pub fn [spacing](#method.spacing)( self, amount: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Pixels](../struct.Pixels.html "struct iced::Pixels")>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the vertical spacing *between* elements.
|
||
|
||
Custom margins per element do not exist in iced. You should use this
|
||
method instead! While less flexible, it helps you keep spacing between
|
||
elements consistent.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#105)
|
||
|
||
#### pub fn [padding](#method.padding)<P>(self, padding: P) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer> where P: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Padding](../struct.Padding.html "struct iced::Padding")>,
|
||
|
||
Sets the [`Padding`](../struct.Padding.html "struct iced::Padding") of the [`Column`](struct.Column.html "struct iced::widget::Column").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#111)
|
||
|
||
#### pub fn [width](#method.width)( self, width: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the width of the [`Column`](struct.Column.html "struct iced::widget::Column").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#117)
|
||
|
||
#### pub fn [height](#method.height)( self, height: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the height of the [`Column`](struct.Column.html "struct iced::widget::Column").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#123)
|
||
|
||
#### pub fn [max\_width](#method.max_width)( self, max\_width: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Pixels](../struct.Pixels.html "struct iced::Pixels")>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the maximum width of the [`Column`](struct.Column.html "struct iced::widget::Column").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#129)
|
||
|
||
#### pub fn [align\_x](#method.align_x)( self, align: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Horizontal](../alignment/enum.Horizontal.html "enum iced::alignment::Horizontal")>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the horizontal alignment of the contents of the [`Column`](struct.Column.html "struct iced::widget::Column") .
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#136)
|
||
|
||
#### pub fn [clip](#method.clip)(self, clip: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Sets whether the contents of the [`Column`](struct.Column.html "struct iced::widget::Column") should be clipped on
|
||
overflow.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#142-145)
|
||
|
||
#### pub fn [push](#method.push)( self, child: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Adds an element to the [`Column`](struct.Column.html "struct iced::widget::Column").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#157-160)
|
||
|
||
#### pub fn [push\_maybe](#method.push_maybe)( self, child: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Adds an element to the [`Column`](struct.Column.html "struct iced::widget::Column"), if `Some`.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#169-172)
|
||
|
||
#### pub fn [extend](#method.extend)( self, children: impl [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator")<Item = [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
Extends the [`Column`](struct.Column.html "struct iced::widget::Column") with the given children.
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#177-179)[§](#impl-Default-for-Column%3C'a,+Message,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Renderer> [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Renderer> where Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#181)[§](#method.default)
|
||
|
||
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)() -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Renderer>
|
||
|
||
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#363-368)[§](#impl-From%3CColumn%3C'a,+Message,+Theme,+Renderer%3E%3E-for-Element%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>> for [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer> where Message: 'a, Theme: 'a, Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer") + 'a,
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#370)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)( column: [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>, ) -> [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#186-188)[§](#impl-FromIterator%3CElement%3C'a,+Message,+Theme,+Renderer%3E%3E-for-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>> for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer> where Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#190-194)[§](#method.from_iter)
|
||
|
||
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)<T>(iter: T) -> [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer> where T: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator")<Item = [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>,
|
||
|
||
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#199-202)[§](#impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Widget](../advanced/trait.Widget.html "trait iced::advanced::Widget")<Message, Theme, Renderer> for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer> where Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#204)[§](#method.children)
|
||
|
||
#### fn [children](../advanced/trait.Widget.html#method.children)(&self) -> [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec")<[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree")>
|
||
|
||
Returns the state [`Tree`](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree") of the children of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#208)[§](#method.diff)
|
||
|
||
#### fn [diff](../advanced/trait.Widget.html#method.diff)(&self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"))
|
||
|
||
Reconciles the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") with the provided [`Tree`](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#212)[§](#method.size)
|
||
|
||
#### fn [size](../advanced/trait.Widget.html#tymethod.size)(&self) -> [Size](../struct.Size.html "struct iced::Size")<[Length](../enum.Length.html "enum iced::Length")>
|
||
|
||
Returns the [`Size`](../struct.Size.html "struct iced::Size") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") in lengths.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#219-224)[§](#method.layout)
|
||
|
||
#### fn [layout](../advanced/trait.Widget.html#tymethod.layout)(&self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), limits: &[Limits](../advanced/layout/struct.Limits.html "struct iced::advanced::layout::Limits")) -> [Node](../advanced/layout/struct.Node.html "struct iced::advanced::layout::Node")
|
||
|
||
Returns the [`layout::Node`](../advanced/layout/struct.Node.html "struct iced::advanced::layout::Node") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#tymethod.layout)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#241-247)[§](#method.operate)
|
||
|
||
#### fn [operate](../advanced/trait.Widget.html#method.operate)( &self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), operation: &mut dyn [Operation](../advanced/widget/trait.Operation.html "trait iced::advanced::widget::Operation"), )
|
||
|
||
Applies an [`Operation`](../advanced/widget/trait.Operation.html "trait iced::advanced::widget::Operation") to the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#261-271)[§](#method.on_event)
|
||
|
||
#### fn [on\_event](../advanced/trait.Widget.html#method.on_event)( &mut self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), event: [Event](../enum.Event.html "enum iced::Event"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), clipboard: &mut dyn [Clipboard](../advanced/trait.Clipboard.html "trait iced::advanced::Clipboard"), shell: &mut [Shell](../advanced/struct.Shell.html "struct iced::advanced::Shell")<'\_, Message>, viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), ) -> [Status](../event/enum.Status.html "enum iced::event::Status")
|
||
|
||
Processes a runtime [`Event`](../enum.Event.html "enum iced::Event"). [Read more](../advanced/trait.Widget.html#method.on_event)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#291-298)[§](#method.mouse_interaction)
|
||
|
||
#### fn [mouse\_interaction](../advanced/trait.Widget.html#method.mouse_interaction)( &self, tree: &[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), ) -> [Interaction](../mouse/enum.Interaction.html "enum iced::mouse::Interaction")
|
||
|
||
Returns the current [`mouse::Interaction`](../mouse/enum.Interaction.html "enum iced::mouse::Interaction") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#method.mouse_interaction)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#312-321)[§](#method.draw)
|
||
|
||
#### fn [draw](../advanced/trait.Widget.html#tymethod.draw)( &self, tree: &[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), renderer: [&mut Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), theme: [&Theme](https://doc.rust-lang.org/nightly/std/primitive.reference.html), style: &[Style](../advanced/renderer/struct.Style.html "struct iced::advanced::renderer::Style"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), )
|
||
|
||
Draws the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") using the associated `Renderer`.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/column.rs.html#346-352)[§](#method.overlay)
|
||
|
||
#### fn [overlay](../advanced/trait.Widget.html#method.overlay)<'b>( &'b mut self, tree: &'b mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), translation: [Vector](../struct.Vector.html "struct iced::Vector"), ) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[Element](../advanced/overlay/struct.Element.html "struct iced::advanced::overlay::Element")<'b, Message, Theme, Renderer>>
|
||
|
||
Returns the overlay of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"), if there is any.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget.rs.html#53)[§](#method.size_hint)
|
||
|
||
#### fn [size\_hint](../advanced/trait.Widget.html#method.size_hint)(&self) -> [Size](../struct.Size.html "struct iced::Size")<[Length](../enum.Length.html "enum iced::Length")>
|
||
|
||
Returns a [`Size`](../struct.Size.html "struct iced::Size") hint for laying out the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#method.size_hint)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget.rs.html#83)[§](#method.tag)
|
||
|
||
#### fn [tag](../advanced/trait.Widget.html#method.tag)(&self) -> [Tag](../advanced/widget/tree/struct.Tag.html "struct iced::advanced::widget::tree::Tag")
|
||
|
||
Returns the [`Tag`](../advanced/widget/tree/struct.Tag.html "struct iced::advanced::widget::tree::Tag") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget.rs.html#90)[§](#method.state)
|
||
|
||
#### fn [state](../advanced/trait.Widget.html#method.state)(&self) -> [State](../advanced/widget/tree/enum.State.html "enum iced::advanced::widget::tree::State")
|
||
|
||
Returns the [`State`](../advanced/widget/tree/enum.State.html "enum iced::advanced::widget::tree::State") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-RefUnwindSafe-for-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Send-for-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Sync-for-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Unpin-for-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-UnwindSafe-for-Column%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Column](struct.Column.html "struct iced::widget::Column")<'a, Message, Theme, Renderer>
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from-1)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#31-33)[§](#impl-NoneValue-for-T)
|
||
|
||
### impl<T> [NoneValue](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html "trait zvariant::optional::NoneValue") for T where T: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#35)[§](#associatedtype.NoneType)
|
||
|
||
#### type [NoneType](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html#associatedtype.NoneType) = T
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#37)[§](#method.null_value)
|
||
|
||
#### fn [null\_value](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html#tymethod.null_value)() -> T
|
||
|
||
The none-equivalent value.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#347)[§](#impl-ReadPrimitive%3CR%3E-for-P)
|
||
|
||
### impl<R, P> [ReadPrimitive](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html "trait lebe::io::ReadPrimitive")<R> for P where R: [Read](https://doc.rust-lang.org/nightly/std/io/trait.Read.html "trait std::io::Read") + [ReadEndian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadEndian.html "trait lebe::io::ReadEndian")<P>, P: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#377)[§](#method.read_from_little_endian)
|
||
|
||
#### fn [read\_from\_little\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_little_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_little_endian()`.
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#382)[§](#method.read_from_big_endian)
|
||
|
||
#### fn [read\_from\_big\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_big_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_big_endian()`.
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#387)[§](#method.read_from_native_endian)
|
||
|
||
#### fn [read\_from\_native\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_native_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_native_endian()`.
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/widget/struct.Row.html](https://docs.rs/iced/0.13.1/iced/widget/struct.Row.html)
|
||
|
||
[iced](../index.html)::[widget](index.html)
|
||
|
||
# Struct RowCopy item path
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#37)
|
||
|
||
```
|
||
pub struct Row<'a, Message, Theme = Theme, Renderer = Renderer<Renderer, Renderer>> { /* private fields */ }
|
||
```
|
||
|
||
Expand description
|
||
|
||
A container that distributes its contents horizontally.
|
||
|
||
## [§](#example)Example
|
||
|
||
```
|
||
use iced::widget::{button, row};
|
||
|
||
#[derive(Debug, Clone)]
|
||
enum Message {
|
||
// ...
|
||
}
|
||
|
||
fn view(state: &State) -> Element<'_, Message> {
|
||
row![
|
||
"I am to the left!",
|
||
button("I am in the middle!"),
|
||
"I am to the right!",
|
||
].into()
|
||
}
|
||
```
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#47-49)[§](#impl-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer> where Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#52)
|
||
|
||
#### pub fn [new](#method.new)() -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Creates an empty [`Row`](struct.Row.html "struct iced::widget::Row").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#57)
|
||
|
||
#### pub fn [with\_capacity](#method.with_capacity)(capacity: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Creates a [`Row`](struct.Row.html "struct iced::widget::Row") with the given capacity.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#62-64)
|
||
|
||
#### pub fn [with\_children](#method.with_children)( children: impl [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator")<Item = [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Creates a [`Row`](struct.Row.html "struct iced::widget::Row") with the given elements.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#77-79)
|
||
|
||
#### pub fn [from\_vec](#method.from_vec)( children: [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Creates a [`Row`](struct.Row.html "struct iced::widget::Row") from an already allocated [`Vec`](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec").
|
||
|
||
Keep in mind that the [`Row`](struct.Row.html "struct iced::widget::Row") will not inspect the [`Vec`](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec"), which means
|
||
it won’t automatically adapt to the sizing strategy of its contents.
|
||
|
||
If any of the children have a [`Length::Fill`](../enum.Length.html#variant.Fill "variant iced::Length::Fill") strategy, you will need to
|
||
call [`Row::width`](struct.Row.html#method.width "method iced::widget::Row::width") or [`Row::height`](struct.Row.html#method.height "method iced::widget::Row::height") accordingly.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#96)
|
||
|
||
#### pub fn [spacing](#method.spacing)( self, amount: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Pixels](../struct.Pixels.html "struct iced::Pixels")>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the horizontal spacing *between* elements.
|
||
|
||
Custom margins per element do not exist in iced. You should use this
|
||
method instead! While less flexible, it helps you keep spacing between
|
||
elements consistent.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#102)
|
||
|
||
#### pub fn [padding](#method.padding)<P>(self, padding: P) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer> where P: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Padding](../struct.Padding.html "struct iced::Padding")>,
|
||
|
||
Sets the [`Padding`](../struct.Padding.html "struct iced::Padding") of the [`Row`](struct.Row.html "struct iced::widget::Row").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#108)
|
||
|
||
#### pub fn [width](#method.width)( self, width: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the width of the [`Row`](struct.Row.html "struct iced::widget::Row").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#114)
|
||
|
||
#### pub fn [height](#method.height)( self, height: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Length](../enum.Length.html "enum iced::Length")>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the height of the [`Row`](struct.Row.html "struct iced::widget::Row").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#120)
|
||
|
||
#### pub fn [align\_y](#method.align_y)( self, align: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Vertical](../alignment/enum.Vertical.html "enum iced::alignment::Vertical")>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Sets the vertical alignment of the contents of the [`Row`](struct.Row.html "struct iced::widget::Row") .
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#127)
|
||
|
||
#### pub fn [clip](#method.clip)(self, clip: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Sets whether the contents of the [`Row`](struct.Row.html "struct iced::widget::Row") should be clipped on
|
||
overflow.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#133-136)
|
||
|
||
#### pub fn [push](#method.push)( self, child: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Adds an [`Element`](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element") to the [`Row`](struct.Row.html "struct iced::widget::Row").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#148-151)
|
||
|
||
#### pub fn [push\_maybe](#method.push_maybe)( self, child: [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Adds an element to the [`Row`](struct.Row.html "struct iced::widget::Row"), if `Some`.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#160-163)
|
||
|
||
#### pub fn [extend](#method.extend)( self, children: impl [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator")<Item = [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>, ) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
Extends the [`Row`](struct.Row.html "struct iced::widget::Row") with the given children.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#170)
|
||
|
||
#### pub fn [wrap](#method.wrap)(self) -> Wrapping<'a, Message, Theme, Renderer>
|
||
|
||
Turns the [`Row`](struct.Row.html "struct iced::widget::Row") into a [`Wrapping`] row.
|
||
|
||
The original alignment of the [`Row`](struct.Row.html "struct iced::widget::Row") is preserved per row wrapped.
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#175-177)[§](#impl-Default-for-Row%3C'a,+Message,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Renderer> [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Renderer> where Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#179)[§](#method.default)
|
||
|
||
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)() -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Renderer>
|
||
|
||
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#359-364)[§](#impl-From%3CRow%3C'a,+Message,+Theme,+Renderer%3E%3E-for-Element%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>> for [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer> where Message: 'a, Theme: 'a, Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer") + 'a,
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#366)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)( row: [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>, ) -> [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#184-186)[§](#impl-FromIterator%3CElement%3C'a,+Message,+Theme,+Renderer%3E%3E-for-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [FromIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html "trait core::iter::traits::collect::FromIterator")<[Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>> for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer> where Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#188-192)[§](#method.from_iter)
|
||
|
||
#### fn [from\_iter](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)<T>(iter: T) -> [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer> where T: [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator")<Item = [Element](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/iced_core/element/struct.Element.html "struct iced_core::element::Element")<'a, Message, Theme, Renderer>>,
|
||
|
||
Creates a value from an iterator. [Read more](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#197-200)[§](#impl-Widget%3CMessage,+Theme,+Renderer%3E-for-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Widget](../advanced/trait.Widget.html "trait iced::advanced::Widget")<Message, Theme, Renderer> for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer> where Renderer: [Renderer](../advanced/trait.Renderer.html "trait iced::advanced::Renderer"),
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#202)[§](#method.children)
|
||
|
||
#### fn [children](../advanced/trait.Widget.html#method.children)(&self) -> [Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec")<[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree")>
|
||
|
||
Returns the state [`Tree`](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree") of the children of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#206)[§](#method.diff)
|
||
|
||
#### fn [diff](../advanced/trait.Widget.html#method.diff)(&self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"))
|
||
|
||
Reconciles the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") with the provided [`Tree`](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#210)[§](#method.size)
|
||
|
||
#### fn [size](../advanced/trait.Widget.html#tymethod.size)(&self) -> [Size](../struct.Size.html "struct iced::Size")<[Length](../enum.Length.html "enum iced::Length")>
|
||
|
||
Returns the [`Size`](../struct.Size.html "struct iced::Size") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") in lengths.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#217-222)[§](#method.layout)
|
||
|
||
#### fn [layout](../advanced/trait.Widget.html#tymethod.layout)(&self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), limits: &[Limits](../advanced/layout/struct.Limits.html "struct iced::advanced::layout::Limits")) -> [Node](../advanced/layout/struct.Node.html "struct iced::advanced::layout::Node")
|
||
|
||
Returns the [`layout::Node`](../advanced/layout/struct.Node.html "struct iced::advanced::layout::Node") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#tymethod.layout)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#237-243)[§](#method.operate)
|
||
|
||
#### fn [operate](../advanced/trait.Widget.html#method.operate)( &self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), operation: &mut dyn [Operation](../advanced/widget/trait.Operation.html "trait iced::advanced::widget::Operation"), )
|
||
|
||
Applies an [`Operation`](../advanced/widget/trait.Operation.html "trait iced::advanced::widget::Operation") to the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#257-267)[§](#method.on_event)
|
||
|
||
#### fn [on\_event](../advanced/trait.Widget.html#method.on_event)( &mut self, tree: &mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), event: [Event](../enum.Event.html "enum iced::Event"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), clipboard: &mut dyn [Clipboard](../advanced/trait.Clipboard.html "trait iced::advanced::Clipboard"), shell: &mut [Shell](../advanced/struct.Shell.html "struct iced::advanced::Shell")<'\_, Message>, viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), ) -> [Status](../event/enum.Status.html "enum iced::event::Status")
|
||
|
||
Processes a runtime [`Event`](../enum.Event.html "enum iced::Event"). [Read more](../advanced/trait.Widget.html#method.on_event)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#287-294)[§](#method.mouse_interaction)
|
||
|
||
#### fn [mouse\_interaction](../advanced/trait.Widget.html#method.mouse_interaction)( &self, tree: &[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), ) -> [Interaction](../mouse/enum.Interaction.html "enum iced::mouse::Interaction")
|
||
|
||
Returns the current [`mouse::Interaction`](../mouse/enum.Interaction.html "enum iced::mouse::Interaction") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#method.mouse_interaction)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#308-317)[§](#method.draw)
|
||
|
||
#### fn [draw](../advanced/trait.Widget.html#tymethod.draw)( &self, tree: &[Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), renderer: [&mut Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), theme: [&Theme](https://doc.rust-lang.org/nightly/std/primitive.reference.html), style: &[Style](../advanced/renderer/struct.Style.html "struct iced::advanced::renderer::Style"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, cursor: [Cursor](../mouse/enum.Cursor.html "enum iced::mouse::Cursor"), viewport: &[Rectangle](../struct.Rectangle.html "struct iced::Rectangle"), )
|
||
|
||
Draws the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget") using the associated `Renderer`.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/row.rs.html#342-348)[§](#method.overlay)
|
||
|
||
#### fn [overlay](../advanced/trait.Widget.html#method.overlay)<'b>( &'b mut self, tree: &'b mut [Tree](../advanced/widget/struct.Tree.html "struct iced::advanced::widget::Tree"), layout: [Layout](../advanced/struct.Layout.html "struct iced::advanced::Layout")<'\_>, renderer: [&Renderer](https://doc.rust-lang.org/nightly/std/primitive.reference.html), translation: [Vector](../struct.Vector.html "struct iced::Vector"), ) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[Element](../advanced/overlay/struct.Element.html "struct iced::advanced::overlay::Element")<'b, Message, Theme, Renderer>>
|
||
|
||
Returns the overlay of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"), if there is any.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget.rs.html#53)[§](#method.size_hint)
|
||
|
||
#### fn [size\_hint](../advanced/trait.Widget.html#method.size_hint)(&self) -> [Size](../struct.Size.html "struct iced::Size")<[Length](../enum.Length.html "enum iced::Length")>
|
||
|
||
Returns a [`Size`](../struct.Size.html "struct iced::Size") hint for laying out the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget"). [Read more](../advanced/trait.Widget.html#method.size_hint)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget.rs.html#83)[§](#method.tag)
|
||
|
||
#### fn [tag](../advanced/trait.Widget.html#method.tag)(&self) -> [Tag](../advanced/widget/tree/struct.Tag.html "struct iced::advanced::widget::tree::Tag")
|
||
|
||
Returns the [`Tag`](../advanced/widget/tree/struct.Tag.html "struct iced::advanced::widget::tree::Tag") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget.rs.html#90)[§](#method.state)
|
||
|
||
#### fn [state](../advanced/trait.Widget.html#method.state)(&self) -> [State](../advanced/widget/tree/enum.State.html "enum iced::advanced::widget::tree::State")
|
||
|
||
Returns the [`State`](../advanced/widget/tree/enum.State.html "enum iced::advanced::widget::tree::State") of the [`Widget`](../advanced/trait.Widget.html "trait iced::advanced::Widget").
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-RefUnwindSafe-for-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Send-for-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Sync-for-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-Unpin-for-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme, Renderer> [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
[§](#impl-UnwindSafe-for-Row%3C'a,+Message,+Theme,+Renderer%3E)
|
||
|
||
### impl<'a, Message, Theme = [Theme](../enum.Theme.html "enum iced::Theme"), Renderer = [Renderer](https://docs.rs/iced_renderer/0.13.0/x86_64-unknown-linux-gnu/iced_renderer/fallback/enum.Renderer.html "enum iced_renderer::fallback::Renderer")<[Renderer](https://docs.rs/iced_wgpu/0.13.5/x86_64-unknown-linux-gnu/iced_wgpu/struct.Renderer.html "struct iced_wgpu::Renderer"), [Renderer](https://docs.rs/iced_tiny_skia/0.13.0/x86_64-unknown-linux-gnu/iced_tiny_skia/struct.Renderer.html "struct iced_tiny_skia::Renderer")>>  for [Row](struct.Row.html "struct iced::widget::Row")<'a, Message, Theme, Renderer>
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from-1)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#31-33)[§](#impl-NoneValue-for-T)
|
||
|
||
### impl<T> [NoneValue](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html "trait zvariant::optional::NoneValue") for T where T: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#35)[§](#associatedtype.NoneType)
|
||
|
||
#### type [NoneType](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html#associatedtype.NoneType) = T
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#37)[§](#method.null_value)
|
||
|
||
#### fn [null\_value](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html#tymethod.null_value)() -> T
|
||
|
||
The none-equivalent value.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#347)[§](#impl-ReadPrimitive%3CR%3E-for-P)
|
||
|
||
### impl<R, P> [ReadPrimitive](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html "trait lebe::io::ReadPrimitive")<R> for P where R: [Read](https://doc.rust-lang.org/nightly/std/io/trait.Read.html "trait std::io::Read") + [ReadEndian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadEndian.html "trait lebe::io::ReadEndian")<P>, P: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#377)[§](#method.read_from_little_endian)
|
||
|
||
#### fn [read\_from\_little\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_little_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_little_endian()`.
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#382)[§](#method.read_from_big_endian)
|
||
|
||
#### fn [read\_from\_big\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_big_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_big_endian()`.
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#387)[§](#method.read_from_native_endian)
|
||
|
||
#### fn [read\_from\_native\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_native_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_native_endian()`.
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/enum.Length.html](https://docs.rs/iced/0.13.1/iced/enum.Length.html)
|
||
|
||
[iced](index.html)
|
||
|
||
# Enum LengthCopy item path
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#5)
|
||
|
||
```
|
||
pub enum Length {
|
||
Fill,
|
||
FillPortion(u16),
|
||
Shrink,
|
||
Fixed(f32),
|
||
}
|
||
```
|
||
|
||
Expand description
|
||
|
||
The strategy used to fill space in a specific dimension.
|
||
|
||
## Variants[§](#variants)
|
||
|
||
[§](#variant.Fill)
|
||
|
||
### Fill
|
||
|
||
Fill all the remaining space
|
||
|
||
[§](#variant.FillPortion)
|
||
|
||
### FillPortion([u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html))
|
||
|
||
Fill a portion of the remaining space relative to other elements.
|
||
|
||
Let’s say we have two elements: one with `FillPortion(2)` and one with
|
||
`FillPortion(3)`. The first will get 2 portions of the available space,
|
||
while the second one would get 3.
|
||
|
||
`Length::Fill` is equivalent to `Length::FillPortion(1)`.
|
||
|
||
[§](#variant.Shrink)
|
||
|
||
### Shrink
|
||
|
||
Fill the least amount of space
|
||
|
||
[§](#variant.Fixed)
|
||
|
||
### Fixed([f32](https://doc.rust-lang.org/nightly/std/primitive.f32.html))
|
||
|
||
Fill a fixed amount of space
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#25)[§](#impl-Length)
|
||
|
||
### impl [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#31)
|
||
|
||
#### pub fn [fill\_factor](#method.fill_factor)(&self) -> [u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html)
|
||
|
||
Returns the *fill factor* of the [`Length`](enum.Length.html "enum iced::Length").
|
||
|
||
The *fill factor* is a relative unit describing how much of the
|
||
remaining space should be filled when compared to other elements. It
|
||
is only meant to be used by layout engines.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#42)
|
||
|
||
#### pub fn [is\_fill](#method.is_fill)(&self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Returns `true` iff the [`Length`](enum.Length.html "enum iced::Length") is either [`Length::Fill`](enum.Length.html#variant.Fill "variant iced::Length::Fill") or
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#51)
|
||
|
||
#### pub fn [fluid](#method.fluid)(&self) -> [Length](enum.Length.html "enum iced::Length")
|
||
|
||
Returns the “fluid” variant of the [`Length`](enum.Length.html "enum iced::Length").
|
||
|
||
Specifically:
|
||
|
||
* [`Length::Shrink`](enum.Length.html#variant.Shrink "variant iced::Length::Shrink") if [`Length::Shrink`](enum.Length.html#variant.Shrink "variant iced::Length::Shrink") or [`Length::Fixed`](enum.Length.html#variant.Fixed "variant iced::Length::Fixed").
|
||
* [`Length::Fill`](enum.Length.html#variant.Fill "variant iced::Length::Fill") otherwise.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#60)
|
||
|
||
#### pub fn [enclose](#method.enclose)(self, other: [Length](enum.Length.html "enum iced::Length")) -> [Length](enum.Length.html "enum iced::Length")
|
||
|
||
Adapts the [`Length`](enum.Length.html "enum iced::Length") so it can contain the other [`Length`](enum.Length.html "enum iced::Length") and
|
||
match its fluidity.
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#4)[§](#impl-Clone-for-Length)
|
||
|
||
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#4)[§](#method.clone)
|
||
|
||
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)(&self) -> [Length](enum.Length.html "enum iced::Length")
|
||
|
||
Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
|
||
|
||
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#213-215)[§](#method.clone_from)
|
||
|
||
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)(&mut self, source: &Self)
|
||
|
||
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#4)[§](#impl-Debug-for-Length)
|
||
|
||
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#4)[§](#method.fmt)
|
||
|
||
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")<'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<[()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error")>
|
||
|
||
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#68)[§](#impl-From%3CPixels%3E-for-Length)
|
||
|
||
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Pixels](struct.Pixels.html "struct iced::Pixels")> for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#69)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(amount: [Pixels](struct.Pixels.html "struct iced::Pixels")) -> [Length](enum.Length.html "enum iced::Length")
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#74)[§](#impl-From%3Cf32%3E-for-Length)
|
||
|
||
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[f32](https://doc.rust-lang.org/nightly/std/primitive.f32.html)> for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#75)[§](#method.from-1)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(amount: [f32](https://doc.rust-lang.org/nightly/std/primitive.f32.html)) -> [Length](enum.Length.html "enum iced::Length")
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#80)[§](#impl-From%3Cu16%3E-for-Length)
|
||
|
||
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html)> for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#81)[§](#method.from-2)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(units: [u16](https://doc.rust-lang.org/nightly/std/primitive.u16.html)) -> [Length](enum.Length.html "enum iced::Length")
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#4)[§](#impl-PartialEq-for-Length)
|
||
|
||
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#4)[§](#method.eq)
|
||
|
||
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq)(&self, other: &[Length](enum.Length.html "enum iced::Length")) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Tests for `self` and `other` values to be equal, and is used by `==`.
|
||
|
||
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#265)[§](#method.ne)
|
||
|
||
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Tests for `!=`. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#4)[§](#impl-Copy-for-Length)
|
||
|
||
### impl [Copy](https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html "trait core::marker::Copy") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/length.rs.html#4)[§](#impl-StructuralPartialEq-for-Length)
|
||
|
||
### impl [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Length)
|
||
|
||
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[§](#impl-RefUnwindSafe-for-Length)
|
||
|
||
### impl [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[§](#impl-Send-for-Length)
|
||
|
||
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[§](#impl-Sync-for-Length)
|
||
|
||
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[§](#impl-Unpin-for-Length)
|
||
|
||
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
[§](#impl-UnwindSafe-for-Length)
|
||
|
||
### impl [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [Length](enum.Length.html "enum iced::Length")
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#483)[§](#impl-CloneToUninit-for-T)
|
||
|
||
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#485)[§](#method.clone_to_uninit)
|
||
|
||
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)(&self, dest: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
|
||
|
||
🔬This is a nightly-only experimental API. (`clone_to_uninit`)
|
||
|
||
Performs copy-assignment from `self` to `dest`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#203)[§](#impl-DowncastSync-for-T)
|
||
|
||
### impl<T> [DowncastSync](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html "trait downcast_rs::DowncastSync") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#204)[§](#method.into_any_arc)
|
||
|
||
#### fn [into\_any\_arc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc)(self: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<T>) -> [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync")>
|
||
|
||
Convert `Arc<Trait>` (where `Trait: Downcast`) to `Arc<Any>`. `Arc<Any>` can then be
|
||
further `downcast` into `Arc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from-3)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84)[§](#impl-ToOwned-for-T)
|
||
|
||
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86)[§](#associatedtype.Owned)
|
||
|
||
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned) = T
|
||
|
||
The resulting type after obtaining ownership.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87)[§](#method.to_owned)
|
||
|
||
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)(&self) -> T
|
||
|
||
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91)[§](#method.clone_into)
|
||
|
||
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
|
||
|
||
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#8)[§](#impl-MaybeSend-for-T)
|
||
|
||
### impl<T> [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#15)[§](#impl-MaybeSync-for-T)
|
||
|
||
### impl<T> [MaybeSync](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSync.html "trait iced_futures::maybe::platform::MaybeSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7040)[§](#impl-WasmNotSend-for-T)
|
||
|
||
### impl<T> [WasmNotSend](widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7024)[§](#impl-WasmNotSendSync-for-T)
|
||
|
||
### impl<T> [WasmNotSendSync](widget/shader/wgpu/trait.WasmNotSendSync.html "trait iced::widget::shader::wgpu::WasmNotSendSync") for T where T: [WasmNotSend](widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") + [WasmNotSync](widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7073)[§](#impl-WasmNotSync-for-T)
|
||
|
||
### impl<T> [WasmNotSync](widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/alignment/index.html](https://docs.rs/iced/0.13.1/iced/alignment/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module alignmentCopy item path
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/lib.rs.html#12)
|
||
|
||
Expand description
|
||
|
||
Align and position widgets.
|
||
|
||
## Enums[§](#enums)
|
||
|
||
[Alignment](enum.Alignment.html "enum iced::alignment::Alignment")
|
||
: Alignment on the axis of a container.
|
||
|
||
[Horizontal](enum.Horizontal.html "enum iced::alignment::Horizontal")
|
||
: The horizontal [`Alignment`](../enum.Alignment.html "enum iced::Alignment") of some resource.
|
||
|
||
[Vertical](enum.Vertical.html "enum iced::alignment::Vertical")
|
||
: The vertical [`Alignment`](../enum.Alignment.html "enum iced::Alignment") of some resource.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/enum.Alignment.html](https://docs.rs/iced/0.13.1/iced/enum.Alignment.html)
|
||
|
||
[iced](index.html)
|
||
|
||
# Enum AlignmentCopy item path
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#5)
|
||
|
||
```
|
||
pub enum Alignment {
|
||
Start,
|
||
Center,
|
||
End,
|
||
}
|
||
```
|
||
|
||
Expand description
|
||
|
||
Alignment on the axis of a container.
|
||
|
||
## Variants[§](#variants)
|
||
|
||
[§](#variant.Start)
|
||
|
||
### Start
|
||
|
||
Align at the start of the axis.
|
||
|
||
[§](#variant.Center)
|
||
|
||
### Center
|
||
|
||
Align at the center of the axis.
|
||
|
||
[§](#variant.End)
|
||
|
||
### End
|
||
|
||
Align at the end of the axis.
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#impl-Clone-for-Alignment)
|
||
|
||
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#method.clone)
|
||
|
||
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)(&self) -> [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
|
||
|
||
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#213-215)[§](#method.clone_from)
|
||
|
||
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)(&mut self, source: &Self)
|
||
|
||
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#impl-Debug-for-Alignment)
|
||
|
||
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#method.fmt)
|
||
|
||
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")<'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<[()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error")>
|
||
|
||
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#49)[§](#impl-From%3CAlignment%3E-for-Horizontal)
|
||
|
||
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Alignment](enum.Alignment.html "enum iced::Alignment")> for [Horizontal](alignment/enum.Horizontal.html "enum iced::alignment::Horizontal")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#50)[§](#method.from-2)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(alignment: [Alignment](enum.Alignment.html "enum iced::Alignment")) -> [Horizontal](alignment/enum.Horizontal.html "enum iced::alignment::Horizontal")
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#72)[§](#impl-From%3CAlignment%3E-for-Vertical)
|
||
|
||
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Alignment](enum.Alignment.html "enum iced::Alignment")> for [Vertical](alignment/enum.Vertical.html "enum iced::alignment::Vertical")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#73)[§](#method.from-3)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(alignment: [Alignment](enum.Alignment.html "enum iced::Alignment")) -> [Vertical](alignment/enum.Vertical.html "enum iced::alignment::Vertical")
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#16)[§](#impl-From%3CHorizontal%3E-for-Alignment)
|
||
|
||
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Horizontal](alignment/enum.Horizontal.html "enum iced::alignment::Horizontal")> for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#17)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(horizontal: [Horizontal](alignment/enum.Horizontal.html "enum iced::alignment::Horizontal")) -> [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#26)[§](#impl-From%3CVertical%3E-for-Alignment)
|
||
|
||
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Vertical](alignment/enum.Vertical.html "enum iced::alignment::Vertical")> for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#27)[§](#method.from-1)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(vertical: [Vertical](alignment/enum.Vertical.html "enum iced::alignment::Vertical")) -> [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
Converts to this type from the input type.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#impl-Hash-for-Alignment)
|
||
|
||
### impl [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#method.hash)
|
||
|
||
#### fn [hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)<\_\_H>(&self, state: [&mut \_\_H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where \_\_H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"),
|
||
|
||
Feeds this value into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash)
|
||
|
||
1.3.0 · [Source](https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237)[§](#method.hash_slice)
|
||
|
||
#### fn [hash\_slice](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)<H>(data: &[Self], state: [&mut H](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) where H: [Hasher](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"), Self: [Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
Feeds a slice of this type into the given [`Hasher`](https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html "trait core::hash::Hasher"). [Read more](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#impl-PartialEq-for-Alignment)
|
||
|
||
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#method.eq)
|
||
|
||
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq)(&self, other: &[Alignment](enum.Alignment.html "enum iced::Alignment")) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Tests for `self` and `other` values to be equal, and is used by `==`.
|
||
|
||
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#265)[§](#method.ne)
|
||
|
||
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Tests for `!=`. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#impl-Copy-for-Alignment)
|
||
|
||
### impl [Copy](https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html "trait core::marker::Copy") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#impl-Eq-for-Alignment)
|
||
|
||
### impl [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/alignment.rs.html#4)[§](#impl-StructuralPartialEq-for-Alignment)
|
||
|
||
### impl [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Alignment)
|
||
|
||
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[§](#impl-RefUnwindSafe-for-Alignment)
|
||
|
||
### impl [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[§](#impl-Send-for-Alignment)
|
||
|
||
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[§](#impl-Sync-for-Alignment)
|
||
|
||
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[§](#impl-Unpin-for-Alignment)
|
||
|
||
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
[§](#impl-UnwindSafe-for-Alignment)
|
||
|
||
### impl [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [Alignment](enum.Alignment.html "enum iced::Alignment")
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/ahash/0.8.12/x86_64-unknown-linux-gnu/src/ahash/specialize.rs.html#59-61)[§](#impl-CallHasher-for-T)
|
||
|
||
### impl<T> [CallHasher](https://docs.rs/ahash/0.8.12/x86_64-unknown-linux-gnu/ahash/specialize/trait.CallHasher.html "trait ahash::specialize::CallHasher") for T where T: [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://docs.rs/ahash/0.8.12/x86_64-unknown-linux-gnu/src/ahash/specialize.rs.html#64)[§](#method.get_hash)
|
||
|
||
#### default fn [get\_hash](https://docs.rs/ahash/0.8.12/x86_64-unknown-linux-gnu/ahash/specialize/trait.CallHasher.html#tymethod.get_hash)<H, B>(value: [&H](https://doc.rust-lang.org/nightly/std/primitive.reference.html), build\_hasher: [&B](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [u64](https://doc.rust-lang.org/nightly/std/primitive.u64.html) where H: [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), B: [BuildHasher](https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html "trait core::hash::BuildHasher"),
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#483)[§](#impl-CloneToUninit-for-T)
|
||
|
||
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#485)[§](#method.clone_to_uninit)
|
||
|
||
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)(&self, dest: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
|
||
|
||
🔬This is a nightly-only experimental API. (`clone_to_uninit`)
|
||
|
||
Performs copy-assignment from `self` to `dest`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#203)[§](#impl-DowncastSync-for-T)
|
||
|
||
### impl<T> [DowncastSync](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html "trait downcast_rs::DowncastSync") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#204)[§](#method.into_any_arc)
|
||
|
||
#### fn [into\_any\_arc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc)(self: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<T>) -> [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync")>
|
||
|
||
Convert `Arc<Trait>` (where `Trait: Downcast`) to `Arc<Any>`. `Arc<Any>` can then be
|
||
further `downcast` into `Arc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/src/hashbrown/lib.rs.html#166-169)[§](#impl-Equivalent%3CK%3E-for-Q)
|
||
|
||
### impl<Q, K> [Equivalent](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/hashbrown/trait.Equivalent.html "trait hashbrown::Equivalent")<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<Q> + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/src/hashbrown/lib.rs.html#171)[§](#method.equivalent)
|
||
|
||
#### fn [equivalent](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/hashbrown/trait.Equivalent.html#tymethod.equivalent)(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Checks if this value is equivalent to the given key. [Read more](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/hashbrown/trait.Equivalent.html#tymethod.equivalent)
|
||
|
||
[Source](https://docs.rs/equivalent/1.0.2/x86_64-unknown-linux-gnu/src/equivalent/lib.rs.html#82-85)[§](#impl-Equivalent%3CK%3E-for-Q-1)
|
||
|
||
### impl<Q, K> [Equivalent](https://docs.rs/equivalent/1.0.2/x86_64-unknown-linux-gnu/equivalent/trait.Equivalent.html "trait equivalent::Equivalent")<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<Q> + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://docs.rs/equivalent/1.0.2/x86_64-unknown-linux-gnu/src/equivalent/lib.rs.html#88)[§](#method.equivalent-1)
|
||
|
||
#### fn [equivalent](https://docs.rs/equivalent/1.0.2/x86_64-unknown-linux-gnu/equivalent/trait.Equivalent.html#tymethod.equivalent)(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Compare self to `key` and return `true` if they are equal.
|
||
|
||
[Source](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/src/hashbrown/lib.rs.html#166-169)[§](#impl-Equivalent%3CK%3E-for-Q-2)
|
||
|
||
### impl<Q, K> [Equivalent](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/hashbrown/trait.Equivalent.html "trait hashbrown::Equivalent")<K> for Q where Q: [Eq](https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html "trait core::cmp::Eq") + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"), K: [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<Q> + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/src/hashbrown/lib.rs.html#171)[§](#method.equivalent-2)
|
||
|
||
#### fn [equivalent](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/hashbrown/trait.Equivalent.html#tymethod.equivalent)(&self, key: [&K](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Checks if this value is equivalent to the given key. [Read more](https://docs.rs/hashbrown/0.14.5/x86_64-unknown-linux-gnu/hashbrown/trait.Equivalent.html#tymethod.equivalent)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from-4)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84)[§](#impl-ToOwned-for-T)
|
||
|
||
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86)[§](#associatedtype.Owned)
|
||
|
||
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned) = T
|
||
|
||
The resulting type after obtaining ownership.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87)[§](#method.to_owned)
|
||
|
||
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)(&self) -> T
|
||
|
||
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91)[§](#method.clone_into)
|
||
|
||
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
|
||
|
||
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#8)[§](#impl-MaybeSend-for-T)
|
||
|
||
### impl<T> [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#15)[§](#impl-MaybeSync-for-T)
|
||
|
||
### impl<T> [MaybeSync](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSync.html "trait iced_futures::maybe::platform::MaybeSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7040)[§](#impl-WasmNotSend-for-T)
|
||
|
||
### impl<T> [WasmNotSend](widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7024)[§](#impl-WasmNotSendSync-for-T)
|
||
|
||
### impl<T> [WasmNotSendSync](widget/shader/wgpu/trait.WasmNotSendSync.html "trait iced::widget::shader::wgpu::WasmNotSendSync") for T where T: [WasmNotSend](widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") + [WasmNotSync](widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7073)[§](#impl-WasmNotSync-for-T)
|
||
|
||
### impl<T> [WasmNotSync](widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/type.Element.html](https://docs.rs/iced/0.13.1/iced/type.Element.html)
|
||
|
||
[iced](index.html)
|
||
|
||
# Type Alias ElementCopy item path
|
||
|
||
[Source](../src/iced/lib.rs.html#634-639)
|
||
|
||
```
|
||
pub type Element<'a, Message, Theme = Theme, Renderer = Renderer> = Element<'a, Message, Theme, Renderer>;
|
||
```
|
||
|
||
Expand description
|
||
|
||
A generic widget.
|
||
|
||
This is an alias of an `iced_native` element with a default `Renderer`.
|
||
|
||
## Aliased Type[§](#aliased-type)
|
||
|
||
```
|
||
pub struct Element<'a, Message, Theme = Theme, Renderer = Renderer> { /* private fields */ }
|
||
```
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/struct.Task.html](https://docs.rs/iced/0.13.1/iced/struct.Task.html)
|
||
|
||
[iced](index.html)
|
||
|
||
# Struct TaskCopy item path
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#18)
|
||
|
||
```
|
||
pub struct Task<T>(/* private fields */);
|
||
```
|
||
|
||
Expand description
|
||
|
||
A set of concurrent actions to be performed by the iced runtime.
|
||
|
||
A [`Task`](struct.Task.html "struct iced::Task") *may* produce a bunch of values of type `T`.
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#20)[§](#impl-Task%3CT%3E)
|
||
|
||
### impl<T> [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#22)
|
||
|
||
#### pub fn [none](#method.none)() -> [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
Creates a [`Task`](struct.Task.html "struct iced::Task") that does nothing.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#27-29)
|
||
|
||
#### pub fn [done](#method.done)(value: T) -> [Task](struct.Task.html "struct iced::Task")<T> where T: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static,
|
||
|
||
Creates a new [`Task`](struct.Task.html "struct iced::Task") that instantly produces the given value.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#36-42)
|
||
|
||
#### pub fn [perform](#method.perform)<A>( future: impl [Future](https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html "trait core::future::future::Future")<Output = A> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(A) -> T + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, ) -> [Task](struct.Task.html "struct iced::Task")<T> where T: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, A: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static,
|
||
|
||
Creates a [`Task`](struct.Task.html "struct iced::Task") that runs the given [`Future`](https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html "trait core::future::future::Future") to completion and maps its
|
||
output with the given closure.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#49-54)
|
||
|
||
#### pub fn [run](#method.run)<A>( stream: impl [Stream](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream")<Item = A> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(A) -> T + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, ) -> [Task](struct.Task.html "struct iced::Task")<T> where T: 'static,
|
||
|
||
Creates a [`Task`](struct.Task.html "struct iced::Task") that runs the given [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream") to completion and maps each
|
||
item with the given closure.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#61-63)
|
||
|
||
#### pub fn [batch](#method.batch)(tasks: impl [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator")<Item = [Task](struct.Task.html "struct iced::Task")<T>>) -> [Task](struct.Task.html "struct iced::Task")<T> where T: 'static,
|
||
|
||
Combines the given tasks and produces a single [`Task`](struct.Task.html "struct iced::Task") that will run all of them
|
||
in parallel.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#71-77)
|
||
|
||
#### pub fn [map](#method.map)<O>(self, f: impl [FnMut](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html "trait core::ops::function::FnMut")(T) -> O + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static) -> [Task](struct.Task.html "struct iced::Task")<O> where T: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, O: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static,
|
||
|
||
Maps the output of a [`Task`](struct.Task.html "struct iced::Task") with the given closure.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#87-93)
|
||
|
||
#### pub fn [then](#method.then)<O>( self, f: impl [FnMut](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html "trait core::ops::function::FnMut")(T) -> [Task](struct.Task.html "struct iced::Task")<O> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, ) -> [Task](struct.Task.html "struct iced::Task")<O> where T: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, O: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static,
|
||
|
||
Performs a new [`Task`](struct.Task.html "struct iced::Task") for every output of the current [`Task`](struct.Task.html "struct iced::Task") using the
|
||
given closure.
|
||
|
||
This is the monadic interface of [`Task`](struct.Task.html "struct iced::Task")—analogous to [`Future`](https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html "trait core::future::future::Future") and
|
||
[`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream").
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#113-115)
|
||
|
||
#### pub fn [chain](#method.chain)(self, task: [Task](struct.Task.html "struct iced::Task")<T>) -> [Task](struct.Task.html "struct iced::Task")<T> where T: 'static,
|
||
|
||
Chains a new [`Task`](struct.Task.html "struct iced::Task") to be performed once the current one finishes completely.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#127-129)
|
||
|
||
#### pub fn [collect](#method.collect)(self) -> [Task](struct.Task.html "struct iced::Task")<[Vec](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec")<T>> where T: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static,
|
||
|
||
Creates a new [`Task`](struct.Task.html "struct iced::Task") that collects all the output of the current one into a [`Vec`](https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html "struct alloc::vec::Vec").
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#166-169)
|
||
|
||
#### pub fn [discard](#method.discard)<O>(self) -> [Task](struct.Task.html "struct iced::Task")<O> where T: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, O: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static,
|
||
|
||
Creates a new [`Task`](struct.Task.html "struct iced::Task") that discards the result of the current one.
|
||
|
||
Useful if you only care about the side effects of a [`Task`](struct.Task.html "struct iced::Task").
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#175-177)
|
||
|
||
#### pub fn [abortable](#method.abortable)(self) -> ([Task](struct.Task.html "struct iced::Task")<T>, [Handle](task/struct.Handle.html "struct iced::task::Handle")) where T: 'static,
|
||
|
||
Creates a new [`Task`](struct.Task.html "struct iced::Task") that can be aborted with the returned [`Handle`](task/struct.Handle.html "struct iced::task::Handle").
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#203-205)
|
||
|
||
#### pub fn [future](#method.future)(future: impl [Future](https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html "trait core::future::future::Future")<Output = T> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static) -> [Task](struct.Task.html "struct iced::Task")<T> where T: 'static,
|
||
|
||
Creates a new [`Task`](struct.Task.html "struct iced::Task") that runs the given [`Future`](https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html "trait core::future::future::Future") and produces
|
||
its output.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#212-214)
|
||
|
||
#### pub fn [stream](#method.stream)(stream: impl [Stream](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream")<Item = T> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static) -> [Task](struct.Task.html "struct iced::Task")<T> where T: 'static,
|
||
|
||
Creates a new [`Task`](struct.Task.html "struct iced::Task") that runs the given [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream") and produces
|
||
each of its items.
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#265)[§](#impl-Task%3COption%3CT%3E%3E)
|
||
|
||
### impl<T> [Task](struct.Task.html "struct iced::Task")<[Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<T>>
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#269-275)
|
||
|
||
#### pub fn [and\_then](#method.and_then)<A>( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(T) -> [Task](struct.Task.html "struct iced::Task")<A> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, ) -> [Task](struct.Task.html "struct iced::Task")<A> where T: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, A: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static,
|
||
|
||
Executes a new [`Task`](struct.Task.html "struct iced::Task") after this one, only when it produces `Some` value.
|
||
|
||
The value is provided to the closure to create the subsequent [`Task`](struct.Task.html "struct iced::Task").
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#281)[§](#impl-Task%3CResult%3CT,+E%3E%3E)
|
||
|
||
### impl<T, E> [Task](struct.Task.html "struct iced::Task")<[Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, E>>
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#285-292)
|
||
|
||
#### pub fn [and\_then](#method.and_then-1)<A>( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(T) -> [Task](struct.Task.html "struct iced::Task")<A> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, ) -> [Task](struct.Task.html "struct iced::Task")<A> where T: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, E: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, A: [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static,
|
||
|
||
Executes a new [`Task`](struct.Task.html "struct iced::Task") after this one, only when it succeeds with an `Ok` value.
|
||
|
||
The success value is provided to the closure to create the subsequent [`Task`](struct.Task.html "struct iced::Task").
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#298)[§](#impl-From%3C()%3E-for-Task%3CT%3E)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)> for [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
[Source](https://docs.rs/iced_runtime/0.13.2/x86_64-unknown-linux-gnu/src/iced_runtime/task.rs.html#299)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(\_value: [()](https://doc.rust-lang.org/nightly/std/primitive.unit.html)) -> [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
Converts to this type from the input type.
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Task%3CT%3E)
|
||
|
||
### impl<T> [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
[§](#impl-RefUnwindSafe-for-Task%3CT%3E)
|
||
|
||
### impl<T>  for [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
[§](#impl-Send-for-Task%3CT%3E)
|
||
|
||
### impl<T> [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
[§](#impl-Sync-for-Task%3CT%3E)
|
||
|
||
### impl<T>  for [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
[§](#impl-Unpin-for-Task%3CT%3E)
|
||
|
||
### impl<T> [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
[§](#impl-UnwindSafe-for-Task%3CT%3E)
|
||
|
||
### impl<T>  for [Task](struct.Task.html "struct iced::Task")<T>
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from-1)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#8)[§](#impl-MaybeSend-for-T)
|
||
|
||
### impl<T> [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7040)[§](#impl-WasmNotSend-for-T)
|
||
|
||
### impl<T> [WasmNotSend](widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/task/index.html](https://docs.rs/iced/0.13.1/iced/task/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module taskCopy item path
|
||
|
||
[Source](../../src/iced/lib.rs.html#517)
|
||
|
||
Expand description
|
||
|
||
Create runtime tasks.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Handle](struct.Handle.html "struct iced::task::Handle")
|
||
: A handle to a [`Task`](../struct.Task.html "struct iced::Task") that can be used for aborting it.
|
||
|
||
[Task](struct.Task.html "struct iced::task::Task")
|
||
: A set of concurrent actions to be performed by the iced runtime.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/struct.Subscription.html](https://docs.rs/iced/0.13.1/iced/struct.Subscription.html)
|
||
|
||
[iced](index.html)
|
||
|
||
# Struct SubscriptionCopy item path
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#96)
|
||
|
||
```
|
||
pub struct Subscription<T> { /* private fields */ }
|
||
```
|
||
|
||
Expand description
|
||
|
||
A request to listen to external events.
|
||
|
||
Besides performing async actions on demand with `Task`, most
|
||
applications also need to listen to external events passively.
|
||
|
||
A [`Subscription`](struct.Subscription.html "struct iced::Subscription") is normally provided to some runtime, like a `Task`,
|
||
and it will generate events as long as the user keeps requesting it.
|
||
|
||
For instance, you can use a [`Subscription`](struct.Subscription.html "struct iced::Subscription") to listen to a `WebSocket`
|
||
connection, keyboard presses, mouse events, time ticks, etc.
|
||
|
||
## [§](#the-lifetime-of-a-subscription)The Lifetime of a [`Subscription`](struct.Subscription.html "struct iced::Subscription")
|
||
|
||
Much like a [`Future`](https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html "trait core::future::future::Future") or a [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream"), a [`Subscription`](struct.Subscription.html "struct iced::Subscription") does not produce any effects
|
||
on its own. For a [`Subscription`](struct.Subscription.html "struct iced::Subscription") to run, it must be returned to the iced runtime—normally
|
||
in the `subscription` function of an `application` or a `daemon`.
|
||
|
||
When a [`Subscription`](struct.Subscription.html "struct iced::Subscription") is provided to the runtime for the first time, the runtime will
|
||
start running it asynchronously. Running a [`Subscription`](struct.Subscription.html "struct iced::Subscription") consists in building its underlying
|
||
[`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream") and executing it in an async runtime.
|
||
|
||
Therefore, you can think of a [`Subscription`](struct.Subscription.html "struct iced::Subscription") as a “stream builder”. It simply represents a way
|
||
to build a certain [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream") together with some way to *identify* it.
|
||
|
||
Identification is important because when a specific [`Subscription`](struct.Subscription.html "struct iced::Subscription") stops being returned to the
|
||
iced runtime, the runtime will kill its associated [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream"). The runtime uses the identity of a
|
||
[`Subscription`](struct.Subscription.html "struct iced::Subscription") to keep track of it.
|
||
|
||
This way, iced allows you to declaratively **subscribe** to particular streams of data temporarily
|
||
and whenever necessary.
|
||
|
||
```
|
||
use iced::time::{self, Duration, Instant};
|
||
use iced::Subscription;
|
||
|
||
struct State {
|
||
timer_enabled: bool,
|
||
}
|
||
|
||
fn subscription(state: &State) -> Subscription<Instant> {
|
||
if state.timer_enabled {
|
||
time::every(Duration::from_secs(1))
|
||
} else {
|
||
Subscription::none()
|
||
}
|
||
}
|
||
```
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#100)[§](#impl-Subscription%3CT%3E)
|
||
|
||
### impl<T> [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#102)
|
||
|
||
#### pub fn [none](#method.none)() -> [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
Returns an empty [`Subscription`](struct.Subscription.html "struct iced::Subscription") that will not produce any output.
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#178-181)
|
||
|
||
#### pub fn [run](#method.run)<S>(builder: [fn](https://doc.rust-lang.org/nightly/std/primitive.fn.html)() -> S) -> [Subscription](struct.Subscription.html "struct iced::Subscription")<T> where S: [Stream](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream")<Item = T> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, T: 'static,
|
||
|
||
Returns a [`Subscription`](struct.Subscription.html "struct iced::Subscription") that will call the given function to create and
|
||
asynchronously run the given [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream").
|
||
|
||
##### [§](#creating-an-asynchronous-worker-with-bidirectional-communication)Creating an asynchronous worker with bidirectional communication
|
||
|
||
You can leverage this helper to create a [`Subscription`](struct.Subscription.html "struct iced::Subscription") that spawns
|
||
an asynchronous worker in the background and establish a channel of
|
||
communication with an `iced` application.
|
||
|
||
You can achieve this by creating an `mpsc` channel inside the closure
|
||
and returning the `Sender` as a `Message` for the `Application`:
|
||
|
||
```
|
||
use iced::futures::channel::mpsc;
|
||
use iced::futures::sink::SinkExt;
|
||
use iced::futures::Stream;
|
||
use iced::stream;
|
||
use iced::Subscription;
|
||
|
||
pub enum Event {
|
||
Ready(mpsc::Sender<Input>),
|
||
WorkFinished,
|
||
// ...
|
||
}
|
||
|
||
enum Input {
|
||
DoSomeWork,
|
||
// ...
|
||
}
|
||
|
||
fn some_worker() -> impl Stream<Item = Event> {
|
||
stream::channel(100, |mut output| async move {
|
||
// Create channel
|
||
let (sender, mut receiver) = mpsc::channel(100);
|
||
|
||
// Send the sender back to the application
|
||
output.send(Event::Ready(sender)).await;
|
||
|
||
loop {
|
||
use iced_futures::futures::StreamExt;
|
||
|
||
// Read next input sent from `Application`
|
||
let input = receiver.select_next_some().await;
|
||
|
||
match input {
|
||
Input::DoSomeWork => {
|
||
// Do some async work...
|
||
|
||
// Finally, we can optionally produce a message to tell the
|
||
// `Application` the work is done
|
||
output.send(Event::WorkFinished).await;
|
||
}
|
||
}
|
||
}
|
||
})
|
||
}
|
||
|
||
fn subscription() -> Subscription<Event> {
|
||
Subscription::run(some_worker)
|
||
}
|
||
```
|
||
|
||
Check out the [`websocket`](https://github.com/iced-rs/iced/tree/0.13/examples/websocket) example, which showcases this pattern to maintain a `WebSocket`
|
||
connection open.
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#193-197)
|
||
|
||
#### pub fn [run\_with\_id](#method.run_with_id)<I, S>(id: I, stream: S) -> [Subscription](struct.Subscription.html "struct iced::Subscription")<T> where I: [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") + 'static, S: [Stream](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream")<Item = T> + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + 'static, T: 'static,
|
||
|
||
Returns a [`Subscription`](struct.Subscription.html "struct iced::Subscription") that will create and asynchronously run the
|
||
given [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream").
|
||
|
||
The `id` will be used to uniquely identify the [`Subscription`](struct.Subscription.html "struct iced::Subscription").
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#207-209)
|
||
|
||
#### pub fn [batch](#method.batch)( subscriptions: impl [IntoIterator](https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html "trait core::iter::traits::collect::IntoIterator")<Item = [Subscription](struct.Subscription.html "struct iced::Subscription")<T>>, ) -> [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
Batches all the provided subscriptions and returns the resulting
|
||
[`Subscription`](struct.Subscription.html "struct iced::Subscription").
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#221-224)
|
||
|
||
#### pub fn [with](#method.with)<A>(self, value: A) -> [Subscription](struct.Subscription.html "struct iced::Subscription")<[(A, T)](https://doc.rust-lang.org/nightly/std/primitive.tuple.html)> where T: 'static, A: [Hash](https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html "trait core::hash::Hash") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") + 'static,
|
||
|
||
Adds a value to the [`Subscription`](struct.Subscription.html "struct iced::Subscription") context.
|
||
|
||
The value will be part of the identity of a [`Subscription`](struct.Subscription.html "struct iced::Subscription").
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#243-247)
|
||
|
||
#### pub fn [map](#method.map)<F, A>(self, f: F) -> [Subscription](struct.Subscription.html "struct iced::Subscription")<A> where T: 'static, F: [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(T) -> A + [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") + 'static, A: 'static,
|
||
|
||
Transforms the [`Subscription`](struct.Subscription.html "struct iced::Subscription") output with the given function.
|
||
|
||
##### [§](#panics)Panics
|
||
|
||
The closure provided must be a non-capturing closure. The method
|
||
will panic in debug mode otherwise.
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#284)[§](#impl-Debug-for-Subscription%3CT%3E)
|
||
|
||
### impl<T> [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/subscription.rs.html#285)[§](#method.fmt)
|
||
|
||
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")<'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<[()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error")>
|
||
|
||
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Subscription%3CT%3E)
|
||
|
||
### impl<T> [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
[§](#impl-RefUnwindSafe-for-Subscription%3CT%3E)
|
||
|
||
### impl<T>  for [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
[§](#impl-Send-for-Subscription%3CT%3E)
|
||
|
||
### impl<T>  for [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
[§](#impl-Sync-for-Subscription%3CT%3E)
|
||
|
||
### impl<T>  for [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
[§](#impl-Unpin-for-Subscription%3CT%3E)
|
||
|
||
### impl<T> [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
[§](#impl-UnwindSafe-for-Subscription%3CT%3E)
|
||
|
||
### impl<T>  for [Subscription](struct.Subscription.html "struct iced::Subscription")<T>
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/stream/index.html](https://docs.rs/iced/0.13.1/iced/stream/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module streamCopy item path
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/lib.rs.html#18)
|
||
|
||
Expand description
|
||
|
||
Create asynchronous streams of data.
|
||
|
||
## Functions[§](#functions)
|
||
|
||
[channel](fn.channel.html "fn iced::stream::channel")
|
||
: Creates a new [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream") that produces the items sent from a [`Future`](https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html "trait core::future::future::Future")
|
||
to the [`mpsc::Sender`](https://docs.rs/futures-channel/0.3.31/x86_64-unknown-linux-gnu/futures_channel/mpsc/struct.Sender.html "struct futures_channel::mpsc::Sender") provided to the closure.
|
||
|
||
[try\_channel](fn.try_channel.html "fn iced::stream::try_channel")
|
||
: Creates a new [`Stream`](https://docs.rs/futures-core/0.3.31/x86_64-unknown-linux-gnu/futures_core/stream/trait.Stream.html "trait futures_core::stream::Stream") that produces the items sent from a [`Future`](https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html "trait core::future::future::Future")
|
||
that can fail to the [`mpsc::Sender`](https://docs.rs/futures-channel/0.3.31/x86_64-unknown-linux-gnu/futures_channel/mpsc/struct.Sender.html "struct futures_channel::mpsc::Sender") provided to the closure.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/daemon/index.html](https://docs.rs/iced/0.13.1/iced/daemon/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module daemonCopy item path
|
||
|
||
[Source](../../src/iced/daemon.rs.html#1-296)
|
||
|
||
Expand description
|
||
|
||
Create and run daemons that run in the background.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Appearance](struct.Appearance.html "struct iced::daemon::Appearance")
|
||
: The appearance of a program.
|
||
|
||
[Daemon](struct.Daemon.html "struct iced::daemon::Daemon")
|
||
: The underlying definition and configuration of an iced daemon.
|
||
|
||
## Traits[§](#traits)
|
||
|
||
[DefaultStyle](trait.DefaultStyle.html "trait iced::daemon::DefaultStyle")
|
||
: The default style of a [`Program`](https://docs.rs/iced_winit/0.13.0/x86_64-unknown-linux-gnu/iced_winit/program/trait.Program.html "trait iced_winit::program::Program").
|
||
|
||
[Title](trait.Title.html "trait iced::daemon::Title")
|
||
: The title logic of some [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[View](trait.View.html "trait iced::daemon::View")
|
||
: The view logic of some [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
## Functions[§](#functions)
|
||
|
||
[daemon](fn.daemon.html "fn iced::daemon::daemon")
|
||
: Creates an iced [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon") given its title, update, and view logic.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/daemon/struct.Daemon.html](https://docs.rs/iced/0.13.1/iced/daemon/struct.Daemon.html)
|
||
|
||
[iced](../index.html)::[daemon](index.html)
|
||
|
||
# Struct DaemonCopy item path
|
||
|
||
[Source](../../src/iced/daemon.rs.html#97-100)
|
||
|
||
```
|
||
pub struct Daemon<P: Program> { /* private fields */ }
|
||
```
|
||
|
||
Expand description
|
||
|
||
The underlying definition and configuration of an iced daemon.
|
||
|
||
You can use this API to create and run iced applications
|
||
step by step—without coupling your logic to a trait
|
||
or a specific type.
|
||
|
||
You can create a [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon") with the [`daemon`](../fn.daemon.html "fn iced::daemon") helper.
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](../../src/iced/daemon.rs.html#102-241)[§](#impl-Daemon%3CP%3E)
|
||
|
||
### impl<P: Program> [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<P>
|
||
|
||
[Source](../../src/iced/daemon.rs.html#110-116)
|
||
|
||
#### pub fn [run](#method.run)(self) -> [Result](../type.Result.html "type iced::Result") where Self: 'static, P::State: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
Runs the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
The state of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon") must implement [`Default`](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default").
|
||
If your state does not implement [`Default`](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"), use [`run_with`](struct.Daemon.html#method.run_with "method iced::daemon::Daemon::run_with")
|
||
instead.
|
||
|
||
[Source](../../src/iced/daemon.rs.html#119-125)
|
||
|
||
#### pub fn [run\_with](#method.run_with)<I>(self, initialize: I) -> [Result](../type.Result.html "type iced::Result") where Self: 'static, I: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")() -> (P::State, [Task](../struct.Task.html "struct iced::Task")<P::Message>) + 'static,
|
||
|
||
Runs the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon") with a closure that creates the initial state.
|
||
|
||
[Source](../../src/iced/daemon.rs.html#128-130)
|
||
|
||
#### pub fn [settings](#method.settings)(self, settings: [Settings](../settings/struct.Settings.html "struct iced::settings::Settings")) -> Self
|
||
|
||
Sets the [`Settings`](../settings/struct.Settings.html "struct iced::settings::Settings") that will be used to run the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[Source](../../src/iced/daemon.rs.html#133-141)
|
||
|
||
#### pub fn [antialiasing](#method.antialiasing)(self, antialiasing: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> Self
|
||
|
||
Sets the [`Settings::antialiasing`](../settings/struct.Settings.html#structfield.antialiasing "field iced::settings::Settings::antialiasing") of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[Source](../../src/iced/daemon.rs.html#144-152)
|
||
|
||
#### pub fn [default\_font](#method.default_font)(self, default\_font: [Font](../struct.Font.html "struct iced::Font")) -> Self
|
||
|
||
Sets the default [`Font`](../struct.Font.html "struct iced::Font") of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[Source](../../src/iced/daemon.rs.html#155-158)
|
||
|
||
#### pub fn [font](#method.font)(self, font: impl [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Cow](https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html "enum alloc::borrow::Cow")<'static, [[u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html)]>>) -> Self
|
||
|
||
Adds a font to the list of fonts that will be loaded at the start of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[Source](../../src/iced/daemon.rs.html#176-186)
|
||
|
||
#### pub fn [subscription](#method.subscription)( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&P::State) -> [Subscription](../struct.Subscription.html "struct iced::Subscription")<P::Message>, ) -> [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>>
|
||
|
||
Sets the subscription logic of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[Source](../../src/iced/daemon.rs.html#189-199)
|
||
|
||
#### pub fn [theme](#method.theme)( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&P::State, [Id](../window/struct.Id.html "struct iced::window::Id")) -> P::Theme, ) -> [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>>
|
||
|
||
Sets the theme logic of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[Source](../../src/iced/daemon.rs.html#202-212)
|
||
|
||
#### pub fn [style](#method.style)( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&P::State, &P::Theme) -> [Appearance](../application/struct.Appearance.html "struct iced::application::Appearance"), ) -> [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>>
|
||
|
||
Sets the style logic of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[Source](../../src/iced/daemon.rs.html#215-225)
|
||
|
||
#### pub fn [scale\_factor](#method.scale_factor)( self, f: impl [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&P::State, [Id](../window/struct.Id.html "struct iced::window::Id")) -> [f64](https://doc.rust-lang.org/nightly/std/primitive.f64.html), ) -> [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>>
|
||
|
||
Sets the scale factor of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
[Source](../../src/iced/daemon.rs.html#228-240)
|
||
|
||
#### pub fn [executor](#method.executor)<E>( self, ) -> [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<impl Program<State = P::State, Message = P::Message, Theme = P::Theme>> where E: [Executor](../trait.Executor.html "trait iced::Executor"),
|
||
|
||
Sets the executor of the [`Daemon`](struct.Daemon.html "struct iced::daemon::Daemon").
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](../../src/iced/daemon.rs.html#96)[§](#impl-Debug-for-Daemon%3CP%3E)
|
||
|
||
### impl<P: [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") + Program> [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<P>
|
||
|
||
[Source](../../src/iced/daemon.rs.html#96)[§](#method.fmt)
|
||
|
||
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")<'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/fmt/type.Result.html "type core::fmt::Result")
|
||
|
||
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Daemon%3CP%3E)
|
||
|
||
### impl<P> [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<P> where P: [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze"),
|
||
|
||
[§](#impl-RefUnwindSafe-for-Daemon%3CP%3E)
|
||
|
||
### impl<P> [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<P> where P: [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe"),
|
||
|
||
[§](#impl-Send-for-Daemon%3CP%3E)
|
||
|
||
### impl<P> [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<P> where P: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[§](#impl-Sync-for-Daemon%3CP%3E)
|
||
|
||
### impl<P> [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<P> where P: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[§](#impl-Unpin-for-Daemon%3CP%3E)
|
||
|
||
### impl<P> [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<P> where P: [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin"),
|
||
|
||
[§](#impl-UnwindSafe-for-Daemon%3CP%3E)
|
||
|
||
### impl<P> [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [Daemon](struct.Daemon.html "struct iced::daemon::Daemon")<P> where P: [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe"),
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#203)[§](#impl-DowncastSync-for-T)
|
||
|
||
### impl<T> [DowncastSync](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html "trait downcast_rs::DowncastSync") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#204)[§](#method.into_any_arc)
|
||
|
||
#### fn [into\_any\_arc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc)(self: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<T>) -> [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync")>
|
||
|
||
Convert `Arc<Trait>` (where `Trait: Downcast`) to `Arc<Any>`. `Arc<Any>` can then be
|
||
further `downcast` into `Arc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#8)[§](#impl-MaybeSend-for-T)
|
||
|
||
### impl<T> [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#15)[§](#impl-MaybeSync-for-T)
|
||
|
||
### impl<T> [MaybeSync](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSync.html "trait iced_futures::maybe::platform::MaybeSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7040)[§](#impl-WasmNotSend-for-T)
|
||
|
||
### impl<T> [WasmNotSend](../widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7024)[§](#impl-WasmNotSendSync-for-T)
|
||
|
||
### impl<T> [WasmNotSendSync](../widget/shader/wgpu/trait.WasmNotSendSync.html "trait iced::widget::shader::wgpu::WasmNotSendSync") for T where T: [WasmNotSend](../widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") + [WasmNotSync](../widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7073)[§](#impl-WasmNotSync-for-T)
|
||
|
||
### impl<T> [WasmNotSync](../widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/theme/index.html](https://docs.rs/iced/0.13.1/iced/theme/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module themeCopy item path
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/lib.rs.html#27)
|
||
|
||
Expand description
|
||
|
||
Use the built-in theme and styles.
|
||
|
||
## Modules[§](#modules)
|
||
|
||
[palette](palette/index.html "mod iced::theme::palette")
|
||
: Define the colors of a theme.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Custom](struct.Custom.html "struct iced::theme::Custom")
|
||
: A [`Theme`](../enum.Theme.html "enum iced::Theme") with a customized [`Palette`](struct.Palette.html "struct iced::theme::Palette").
|
||
|
||
[Palette](struct.Palette.html "struct iced::theme::Palette")
|
||
: A color palette.
|
||
|
||
## Enums[§](#enums)
|
||
|
||
[Theme](enum.Theme.html "enum iced::theme::Theme")
|
||
: A built-in theme.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/enum.Theme.html](https://docs.rs/iced/0.13.1/iced/enum.Theme.html)
|
||
|
||
[iced](index.html)
|
||
|
||
# Enum ThemeCopy item path
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#11)
|
||
|
||
```
|
||
pub enum Theme {
|
||
Show 23 variants Light,
|
||
Dark,
|
||
Dracula,
|
||
Nord,
|
||
SolarizedLight,
|
||
SolarizedDark,
|
||
GruvboxLight,
|
||
GruvboxDark,
|
||
CatppuccinLatte,
|
||
CatppuccinFrappe,
|
||
CatppuccinMacchiato,
|
||
CatppuccinMocha,
|
||
TokyoNight,
|
||
TokyoNightStorm,
|
||
TokyoNightLight,
|
||
KanagawaWave,
|
||
KanagawaDragon,
|
||
KanagawaLotus,
|
||
Moonfly,
|
||
Nightfly,
|
||
Oxocarbon,
|
||
Ferra,
|
||
Custom(Arc<Custom>),
|
||
}
|
||
```
|
||
|
||
Expand description
|
||
|
||
A built-in theme.
|
||
|
||
## Variants[§](#variants)
|
||
|
||
[§](#variant.Light)
|
||
|
||
### Light
|
||
|
||
The built-in light variant.
|
||
|
||
[§](#variant.Dark)
|
||
|
||
### Dark
|
||
|
||
The built-in dark variant.
|
||
|
||
[§](#variant.Dracula)
|
||
|
||
### Dracula
|
||
|
||
The built-in Dracula variant.
|
||
|
||
[§](#variant.Nord)
|
||
|
||
### Nord
|
||
|
||
The built-in Nord variant.
|
||
|
||
[§](#variant.SolarizedLight)
|
||
|
||
### SolarizedLight
|
||
|
||
The built-in Solarized Light variant.
|
||
|
||
[§](#variant.SolarizedDark)
|
||
|
||
### SolarizedDark
|
||
|
||
The built-in Solarized Dark variant.
|
||
|
||
[§](#variant.GruvboxLight)
|
||
|
||
### GruvboxLight
|
||
|
||
The built-in Gruvbox Light variant.
|
||
|
||
[§](#variant.GruvboxDark)
|
||
|
||
### GruvboxDark
|
||
|
||
The built-in Gruvbox Dark variant.
|
||
|
||
[§](#variant.CatppuccinLatte)
|
||
|
||
### CatppuccinLatte
|
||
|
||
The built-in Catppuccin Latte variant.
|
||
|
||
[§](#variant.CatppuccinFrappe)
|
||
|
||
### CatppuccinFrappe
|
||
|
||
The built-in Catppuccin Frappé variant.
|
||
|
||
[§](#variant.CatppuccinMacchiato)
|
||
|
||
### CatppuccinMacchiato
|
||
|
||
The built-in Catppuccin Macchiato variant.
|
||
|
||
[§](#variant.CatppuccinMocha)
|
||
|
||
### CatppuccinMocha
|
||
|
||
The built-in Catppuccin Mocha variant.
|
||
|
||
[§](#variant.TokyoNight)
|
||
|
||
### TokyoNight
|
||
|
||
The built-in Tokyo Night variant.
|
||
|
||
[§](#variant.TokyoNightStorm)
|
||
|
||
### TokyoNightStorm
|
||
|
||
The built-in Tokyo Night Storm variant.
|
||
|
||
[§](#variant.TokyoNightLight)
|
||
|
||
### TokyoNightLight
|
||
|
||
The built-in Tokyo Night Light variant.
|
||
|
||
[§](#variant.KanagawaWave)
|
||
|
||
### KanagawaWave
|
||
|
||
The built-in Kanagawa Wave variant.
|
||
|
||
[§](#variant.KanagawaDragon)
|
||
|
||
### KanagawaDragon
|
||
|
||
The built-in Kanagawa Dragon variant.
|
||
|
||
[§](#variant.KanagawaLotus)
|
||
|
||
### KanagawaLotus
|
||
|
||
The built-in Kanagawa Lotus variant.
|
||
|
||
[§](#variant.Moonfly)
|
||
|
||
### Moonfly
|
||
|
||
The built-in Moonfly variant.
|
||
|
||
[§](#variant.Nightfly)
|
||
|
||
### Nightfly
|
||
|
||
The built-in Nightfly variant.
|
||
|
||
[§](#variant.Oxocarbon)
|
||
|
||
### Oxocarbon
|
||
|
||
The built-in Oxocarbon variant.
|
||
|
||
[§](#variant.Ferra)
|
||
|
||
### Ferra
|
||
|
||
The built-in Ferra variant:
|
||
|
||
[§](#variant.Custom)
|
||
|
||
### Custom([Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<[Custom](theme/struct.Custom.html "struct iced::theme::Custom")>)
|
||
|
||
A [`Theme`](enum.Theme.html "enum iced::Theme") that uses a [`Custom`](theme/struct.Custom.html "struct iced::theme::Custom") palette.
|
||
|
||
## Implementations[§](#implementations)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#60)[§](#impl-Theme)
|
||
|
||
### impl [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#62)
|
||
|
||
#### pub const [ALL](#associatedconstant.ALL): &'static [[Theme](enum.Theme.html "enum iced::Theme")]
|
||
|
||
A list with all the defined themes.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#88)
|
||
|
||
#### pub fn [custom](#method.custom)(name: [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String"), palette: [Palette](theme/struct.Palette.html "struct iced::theme::Palette")) -> [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
Creates a new custom [`Theme`](enum.Theme.html "enum iced::Theme") from the given [`Palette`](theme/struct.Palette.html "struct iced::theme::Palette").
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#94-98)
|
||
|
||
#### pub fn [custom\_with\_fn](#method.custom_with_fn)( name: [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String"), palette: [Palette](theme/struct.Palette.html "struct iced::theme::Palette"), generate: impl [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")([Palette](theme/struct.Palette.html "struct iced::theme::Palette")) -> [Extended](theme/palette/struct.Extended.html "struct iced::theme::palette::Extended"), ) -> [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
Creates a new custom [`Theme`](enum.Theme.html "enum iced::Theme") from the given [`Palette`](theme/struct.Palette.html "struct iced::theme::Palette"), with
|
||
a custom generator of a [`palette::Extended`](theme/palette/struct.Extended.html "struct iced::theme::palette::Extended").
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#103)
|
||
|
||
#### pub fn [palette](#method.palette)(&self) -> [Palette](theme/struct.Palette.html "struct iced::theme::Palette")
|
||
|
||
Returns the [`Palette`](theme/struct.Palette.html "struct iced::theme::Palette") of the [`Theme`](enum.Theme.html "enum iced::Theme").
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#132)
|
||
|
||
#### pub fn [extended\_palette](#method.extended_palette)(&self) -> &[Extended](theme/palette/struct.Extended.html "struct iced::theme::palette::Extended")
|
||
|
||
Returns the [`palette::Extended`](theme/palette/struct.Extended.html "struct iced::theme::palette::Extended") of the [`Theme`](enum.Theme.html "enum iced::Theme").
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/button.rs.html#522)[§](#impl-Catalog-for-Theme)
|
||
|
||
### impl [Catalog](widget/button/trait.Catalog.html "trait iced::widget::button::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/button.rs.html#523)[§](#associatedtype.Class)
|
||
|
||
#### type [Class](widget/button/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/button/enum.Status.html "enum iced::widget::button::Status")) -> [Style](widget/button/struct.Style.html "struct iced::widget::button::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/button/trait.Catalog.html "trait iced::widget::button::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/button.rs.html#525)[§](#method.default)
|
||
|
||
#### fn [default](widget/button/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/button/trait.Catalog.html "trait iced::widget::button::Catalog")>::[Class](widget/button/trait.Catalog.html#associatedtype.Class "type iced::widget::button::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/button/trait.Catalog.html "trait iced::widget::button::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/button.rs.html#529)[§](#method.style)
|
||
|
||
#### fn [style](widget/button/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/button/trait.Catalog.html "trait iced::widget::button::Catalog")>::[Class](widget/button/trait.Catalog.html#associatedtype.Class "type iced::widget::button::Catalog::Class")<'\_>, status: [Status](widget/button/enum.Status.html "enum iced::widget::button::Status")) -> [Style](widget/button/struct.Style.html "struct iced::widget::button::Style")
|
||
|
||
The [`Style`](widget/button/struct.Style.html "struct iced::widget::button::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/checkbox.rs.html#513)[§](#impl-Catalog-for-Theme-1)
|
||
|
||
### impl [Catalog](widget/checkbox/trait.Catalog.html "trait iced::widget::checkbox::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/checkbox.rs.html#514)[§](#associatedtype.Class-1)
|
||
|
||
#### type [Class](widget/checkbox/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/checkbox/enum.Status.html "enum iced::widget::checkbox::Status")) -> [Style](widget/checkbox/struct.Style.html "struct iced::widget::checkbox::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/checkbox/trait.Catalog.html "trait iced::widget::checkbox::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/checkbox.rs.html#516)[§](#method.default-1)
|
||
|
||
#### fn [default](widget/checkbox/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/checkbox/trait.Catalog.html "trait iced::widget::checkbox::Catalog")>::[Class](widget/checkbox/trait.Catalog.html#associatedtype.Class "type iced::widget::checkbox::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/checkbox/trait.Catalog.html "trait iced::widget::checkbox::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/checkbox.rs.html#520)[§](#method.style-1)
|
||
|
||
#### fn [style](widget/checkbox/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/checkbox/trait.Catalog.html "trait iced::widget::checkbox::Catalog")>::[Class](widget/checkbox/trait.Catalog.html#associatedtype.Class "type iced::widget::checkbox::Catalog::Class")<'\_>, status: [Status](widget/checkbox/enum.Status.html "enum iced::widget::checkbox::Status")) -> [Style](widget/checkbox/struct.Style.html "struct iced::widget::checkbox::Style")
|
||
|
||
The [`Style`](widget/checkbox/struct.Style.html "struct iced::widget::checkbox::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/scrollable.rs.html#1906)[§](#impl-Catalog-for-Theme-10)
|
||
|
||
### impl [Catalog](widget/scrollable/trait.Catalog.html "trait iced::widget::scrollable::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/scrollable.rs.html#1907)[§](#associatedtype.Class-9)
|
||
|
||
#### type [Class](widget/scrollable/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/scrollable/enum.Status.html "enum iced::widget::scrollable::Status")) -> [Style](widget/scrollable/struct.Style.html "struct iced::widget::scrollable::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/scrollable/trait.Catalog.html "trait iced::widget::scrollable::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/scrollable.rs.html#1909)[§](#method.default-9)
|
||
|
||
#### fn [default](widget/scrollable/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/scrollable/trait.Catalog.html "trait iced::widget::scrollable::Catalog")>::[Class](widget/scrollable/trait.Catalog.html#associatedtype.Class "type iced::widget::scrollable::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/scrollable/trait.Catalog.html "trait iced::widget::scrollable::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/scrollable.rs.html#1913)[§](#method.style-9)
|
||
|
||
#### fn [style](widget/scrollable/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/scrollable/trait.Catalog.html "trait iced::widget::scrollable::Catalog")>::[Class](widget/scrollable/trait.Catalog.html#associatedtype.Class "type iced::widget::scrollable::Catalog::Class")<'\_>, status: [Status](widget/scrollable/enum.Status.html "enum iced::widget::scrollable::Status")) -> [Style](widget/scrollable/struct.Style.html "struct iced::widget::scrollable::Style")
|
||
|
||
The [`Style`](widget/scrollable/struct.Style.html "struct iced::widget::scrollable::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/slider.rs.html#640)[§](#impl-Catalog-for-Theme-11)
|
||
|
||
### impl [Catalog](widget/slider/trait.Catalog.html "trait iced::widget::slider::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/slider.rs.html#641)[§](#associatedtype.Class-10)
|
||
|
||
#### type [Class](widget/slider/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/slider/enum.Status.html "enum iced::widget::slider::Status")) -> [Style](widget/slider/struct.Style.html "struct iced::widget::slider::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/slider/trait.Catalog.html "trait iced::widget::slider::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/slider.rs.html#643)[§](#method.default-10)
|
||
|
||
#### fn [default](widget/slider/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/slider/trait.Catalog.html "trait iced::widget::slider::Catalog")>::[Class](widget/slider/trait.Catalog.html#associatedtype.Class "type iced::widget::slider::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/slider/trait.Catalog.html "trait iced::widget::slider::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/slider.rs.html#647)[§](#method.style-10)
|
||
|
||
#### fn [style](widget/slider/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/slider/trait.Catalog.html "trait iced::widget::slider::Catalog")>::[Class](widget/slider/trait.Catalog.html#associatedtype.Class "type iced::widget::slider::Catalog::Class")<'\_>, status: [Status](widget/slider/enum.Status.html "enum iced::widget::slider::Status")) -> [Style](widget/slider/struct.Style.html "struct iced::widget::slider::Style")
|
||
|
||
The [`Style`](widget/slider/struct.Style.html "struct iced::widget::slider::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/text_editor.rs.html#1260)[§](#impl-Catalog-for-Theme-12)
|
||
|
||
### impl [Catalog](widget/text_editor/trait.Catalog.html "trait iced::widget::text_editor::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/text_editor.rs.html#1261)[§](#associatedtype.Class-11)
|
||
|
||
#### type [Class](widget/text_editor/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/text_editor/enum.Status.html "enum iced::widget::text_editor::Status")) -> [Style](widget/text_editor/struct.Style.html "struct iced::widget::text_editor::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/text_editor/trait.Catalog.html "trait iced::widget::text_editor::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/text_editor.rs.html#1263)[§](#method.default-11)
|
||
|
||
#### fn [default](widget/text_editor/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/text_editor/trait.Catalog.html "trait iced::widget::text_editor::Catalog")>::[Class](widget/text_editor/trait.Catalog.html#associatedtype.Class "type iced::widget::text_editor::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/text_editor/trait.Catalog.html "trait iced::widget::text_editor::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/text_editor.rs.html#1267)[§](#method.style-11)
|
||
|
||
#### fn [style](widget/text_editor/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/text_editor/trait.Catalog.html "trait iced::widget::text_editor::Catalog")>::[Class](widget/text_editor/trait.Catalog.html#associatedtype.Class "type iced::widget::text_editor::Catalog::Class")<'\_>, status: [Status](widget/text_editor/enum.Status.html "enum iced::widget::text_editor::Status")) -> [Style](widget/text_editor/struct.Style.html "struct iced::widget::text_editor::Style")
|
||
|
||
The [`Style`](widget/text_editor/struct.Style.html "struct iced::widget::text_editor::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/text_input.rs.html#1577)[§](#impl-Catalog-for-Theme-13)
|
||
|
||
### impl [Catalog](widget/text_input/trait.Catalog.html "trait iced::widget::text_input::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/text_input.rs.html#1578)[§](#associatedtype.Class-12)
|
||
|
||
#### type [Class](widget/text_input/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/text_input/enum.Status.html "enum iced::widget::text_input::Status")) -> [Style](widget/text_input/struct.Style.html "struct iced::widget::text_input::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/text_input/trait.Catalog.html "trait iced::widget::text_input::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/text_input.rs.html#1580)[§](#method.default-12)
|
||
|
||
#### fn [default](widget/text_input/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/text_input/trait.Catalog.html "trait iced::widget::text_input::Catalog")>::[Class](widget/text_input/trait.Catalog.html#associatedtype.Class "type iced::widget::text_input::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/text_input/trait.Catalog.html "trait iced::widget::text_input::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/text_input.rs.html#1584)[§](#method.style-12)
|
||
|
||
#### fn [style](widget/text_input/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/text_input/trait.Catalog.html "trait iced::widget::text_input::Catalog")>::[Class](widget/text_input/trait.Catalog.html#associatedtype.Class "type iced::widget::text_input::Catalog::Class")<'\_>, status: [Status](widget/text_input/enum.Status.html "enum iced::widget::text_input::Status")) -> [Style](widget/text_input/struct.Style.html "struct iced::widget::text_input::Style")
|
||
|
||
The [`Style`](widget/text_input/struct.Style.html "struct iced::widget::text_input::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/toggler.rs.html#525)[§](#impl-Catalog-for-Theme-14)
|
||
|
||
### impl [Catalog](widget/toggler/trait.Catalog.html "trait iced::widget::toggler::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/toggler.rs.html#526)[§](#associatedtype.Class-13)
|
||
|
||
#### type [Class](widget/toggler/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/toggler/enum.Status.html "enum iced::widget::toggler::Status")) -> [Style](widget/toggler/struct.Style.html "struct iced::widget::toggler::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/toggler/trait.Catalog.html "trait iced::widget::toggler::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/toggler.rs.html#528)[§](#method.default-13)
|
||
|
||
#### fn [default](widget/toggler/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/toggler/trait.Catalog.html "trait iced::widget::toggler::Catalog")>::[Class](widget/toggler/trait.Catalog.html#associatedtype.Class "type iced::widget::toggler::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/toggler/trait.Catalog.html "trait iced::widget::toggler::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/toggler.rs.html#532)[§](#method.style-13)
|
||
|
||
#### fn [style](widget/toggler/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/toggler/trait.Catalog.html "trait iced::widget::toggler::Catalog")>::[Class](widget/toggler/trait.Catalog.html#associatedtype.Class "type iced::widget::toggler::Catalog::Class")<'\_>, status: [Status](widget/toggler/enum.Status.html "enum iced::widget::toggler::Status")) -> [Style](widget/toggler/struct.Style.html "struct iced::widget::toggler::Style")
|
||
|
||
The [`Style`](widget/toggler/struct.Style.html "struct iced::widget::toggler::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/svg.rs.html#309)[§](#impl-Catalog-for-Theme-15)
|
||
|
||
### impl [Catalog](widget/svg/trait.Catalog.html "trait iced::widget::svg::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/svg.rs.html#310)[§](#associatedtype.Class-14)
|
||
|
||
#### type [Class](widget/svg/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/svg/enum.Status.html "enum iced::widget::svg::Status")) -> [Style](widget/svg/struct.Style.html "struct iced::widget::svg::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/svg/trait.Catalog.html "trait iced::widget::svg::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/svg.rs.html#312)[§](#method.default-14)
|
||
|
||
#### fn [default](widget/svg/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/svg/trait.Catalog.html "trait iced::widget::svg::Catalog")>::[Class](widget/svg/trait.Catalog.html#associatedtype.Class "type iced::widget::svg::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/svg/trait.Catalog.html "trait iced::widget::svg::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/svg.rs.html#316)[§](#method.style-14)
|
||
|
||
#### fn [style](widget/svg/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/svg/trait.Catalog.html "trait iced::widget::svg::Catalog")>::[Class](widget/svg/trait.Catalog.html#associatedtype.Class "type iced::widget::svg::Catalog::Class")<'\_>, status: [Status](widget/svg/enum.Status.html "enum iced::widget::svg::Status")) -> [Style](widget/svg/struct.Style.html "struct iced::widget::svg::Style")
|
||
|
||
The [`Style`](widget/svg/struct.Style.html "struct iced::widget::svg::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/qr_code.rs.html#412)[§](#impl-Catalog-for-Theme-16)
|
||
|
||
### impl [Catalog](widget/qr_code/trait.Catalog.html "trait iced::widget::qr_code::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/qr_code.rs.html#413)[§](#associatedtype.Class-15)
|
||
|
||
#### type [Class](widget/qr_code/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](widget/qr_code/struct.Style.html "struct iced::widget::qr_code::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/qr_code/trait.Catalog.html "trait iced::widget::qr_code::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/qr_code.rs.html#415)[§](#method.default-15)
|
||
|
||
#### fn [default](widget/qr_code/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/qr_code/trait.Catalog.html "trait iced::widget::qr_code::Catalog")>::[Class](widget/qr_code/trait.Catalog.html#associatedtype.Class "type iced::widget::qr_code::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/qr_code/trait.Catalog.html "trait iced::widget::qr_code::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/qr_code.rs.html#419)[§](#method.style-15)
|
||
|
||
#### fn [style](widget/qr_code/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/qr_code/trait.Catalog.html "trait iced::widget::qr_code::Catalog")>::[Class](widget/qr_code/trait.Catalog.html#associatedtype.Class "type iced::widget::qr_code::Catalog::Class")<'\_>) -> [Style](widget/qr_code/struct.Style.html "struct iced::widget::qr_code::Style")
|
||
|
||
The [`Style`](widget/qr_code/struct.Style.html "struct iced::widget::qr_code::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/markdown.rs.html#712)[§](#impl-Catalog-for-Theme-17)
|
||
|
||
### impl [Catalog](widget/markdown/trait.Catalog.html "trait iced::widget::markdown::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/markdown.rs.html#713)[§](#method.code_block)
|
||
|
||
#### fn [code\_block](widget/markdown/trait.Catalog.html#tymethod.code_block)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/container/trait.Catalog.html "trait iced::widget::container::Catalog")>::[Class](widget/container/trait.Catalog.html#associatedtype.Class "type iced::widget::container::Catalog::Class")<'a>
|
||
|
||
The styling class of a Markdown code block.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget/text.rs.html#417)[§](#impl-Catalog-for-Theme-18)
|
||
|
||
### impl [Catalog](widget/text/trait.Catalog.html "trait iced::widget::text::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget/text.rs.html#418)[§](#associatedtype.Class-16)
|
||
|
||
#### type [Class](widget/text/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](widget/text/struct.Style.html "struct iced::widget::text::Style") + 'a>
|
||
|
||
The item class of this [`Catalog`](widget/text/trait.Catalog.html "trait iced::widget::text::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget/text.rs.html#420)[§](#method.default-17)
|
||
|
||
#### fn [default](widget/text/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/text/trait.Catalog.html "trait iced::widget::text::Catalog")>::[Class](widget/text/trait.Catalog.html#associatedtype.Class "type iced::widget::text::Catalog::Class")<'a>
|
||
|
||
The default class produced by this [`Catalog`](widget/text/trait.Catalog.html "trait iced::widget::text::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/widget/text.rs.html#424)[§](#method.style-16)
|
||
|
||
#### fn [style](widget/text/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/text/trait.Catalog.html "trait iced::widget::text::Catalog")>::[Class](widget/text/trait.Catalog.html#associatedtype.Class "type iced::widget::text::Catalog::Class")<'\_>) -> [Style](widget/text/struct.Style.html "struct iced::widget::text::Style")
|
||
|
||
The [`Style`](widget/text/struct.Style.html "struct iced::widget::text::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/combo_box.rs.html#917)[§](#impl-Catalog-for-Theme-2)
|
||
|
||
### impl [Catalog](widget/combo_box/trait.Catalog.html "trait iced::widget::combo_box::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/combo_box.rs.html#907)[§](#method.default_input)
|
||
|
||
#### fn [default\_input](widget/combo_box/trait.Catalog.html#method.default_input)<'a>() -> Self::[Class](widget/text_input/trait.Catalog.html#associatedtype.Class "type iced::widget::text_input::Catalog::Class")<'a>
|
||
|
||
The default class for the text input of the [`ComboBox`](widget/struct.ComboBox.html "struct iced::widget::ComboBox").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/combo_box.rs.html#912)[§](#method.default_menu)
|
||
|
||
#### fn [default\_menu](widget/combo_box/trait.Catalog.html#method.default_menu)<'a>() -> Self::[Class](overlay/menu/trait.Catalog.html#associatedtype.Class "type iced::overlay::menu::Catalog::Class")<'a>
|
||
|
||
The default class for the menu of the [`ComboBox`](widget/struct.ComboBox.html "struct iced::widget::ComboBox").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#660)[§](#impl-Catalog-for-Theme-3)
|
||
|
||
### impl [Catalog](widget/container/trait.Catalog.html "trait iced::widget::container::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#661)[§](#associatedtype.Class-2)
|
||
|
||
#### type [Class](widget/container/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](widget/container/struct.Style.html "struct iced::widget::container::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/container/trait.Catalog.html "trait iced::widget::container::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#663)[§](#method.default-2)
|
||
|
||
#### fn [default](widget/container/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/container/trait.Catalog.html "trait iced::widget::container::Catalog")>::[Class](widget/container/trait.Catalog.html#associatedtype.Class "type iced::widget::container::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/container/trait.Catalog.html "trait iced::widget::container::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/container.rs.html#667)[§](#method.style-2)
|
||
|
||
#### fn [style](widget/container/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/container/trait.Catalog.html "trait iced::widget::container::Catalog")>::[Class](widget/container/trait.Catalog.html#associatedtype.Class "type iced::widget::container::Catalog::Class")<'\_>) -> [Style](widget/container/struct.Style.html "struct iced::widget::container::Style")
|
||
|
||
The [`Style`](widget/container/struct.Style.html "struct iced::widget::container::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/overlay/menu.rs.html#599)[§](#impl-Catalog-for-Theme-4)
|
||
|
||
### impl [Catalog](overlay/menu/trait.Catalog.html "trait iced::overlay::menu::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/overlay/menu.rs.html#600)[§](#associatedtype.Class-3)
|
||
|
||
#### type [Class](overlay/menu/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](overlay/menu/struct.Style.html "struct iced::overlay::menu::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](overlay/menu/trait.Catalog.html "trait iced::overlay::menu::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/overlay/menu.rs.html#602)[§](#method.default-3)
|
||
|
||
#### fn [default](overlay/menu/trait.Catalog.html#tymethod.default)<'a>() -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](overlay/menu/struct.Style.html "struct iced::overlay::menu::Style") + 'a>
|
||
|
||
The default class produced by the [`Catalog`](overlay/menu/trait.Catalog.html "trait iced::overlay::menu::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/overlay/menu.rs.html#606)[§](#method.style-3)
|
||
|
||
#### fn [style](overlay/menu/trait.Catalog.html#tymethod.style)(&self, class: &[Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](overlay/menu/struct.Style.html "struct iced::overlay::menu::Style") + '\_>) -> [Style](overlay/menu/struct.Style.html "struct iced::overlay::menu::Style")
|
||
|
||
The [`Style`](overlay/menu/struct.Style.html "struct iced::overlay::menu::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/overlay/menu.rs.html#588)[§](#method.default_scrollable)
|
||
|
||
#### fn [default\_scrollable](overlay/menu/trait.Catalog.html#method.default_scrollable)<'a>() -> Self::[Class](widget/scrollable/trait.Catalog.html#associatedtype.Class "type iced::widget::scrollable::Catalog::Class")<'a>
|
||
|
||
The default class for the scrollable of the [`Menu`](overlay/menu/struct.Menu.html "struct iced::overlay::menu::Menu").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pane_grid.rs.html#1233)[§](#impl-Catalog-for-Theme-5)
|
||
|
||
### impl [Catalog](widget/pane_grid/trait.Catalog.html "trait iced::widget::pane_grid::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pane_grid.rs.html#1234)[§](#associatedtype.Class-4)
|
||
|
||
#### type [Class](widget/pane_grid/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](widget/pane_grid/struct.Style.html "struct iced::widget::pane_grid::Style") + 'a>
|
||
|
||
The item class of this [`Catalog`](widget/pane_grid/trait.Catalog.html "trait iced::widget::pane_grid::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pane_grid.rs.html#1236)[§](#method.default-4)
|
||
|
||
#### fn [default](widget/pane_grid/trait.Catalog.html#tymethod.default)<'a>() -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](widget/pane_grid/struct.Style.html "struct iced::widget::pane_grid::Style") + 'a>
|
||
|
||
The default class produced by this [`Catalog`](widget/pane_grid/trait.Catalog.html "trait iced::widget::pane_grid::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pane_grid.rs.html#1240)[§](#method.style-4)
|
||
|
||
#### fn [style](widget/pane_grid/trait.Catalog.html#tymethod.style)(&self, class: &[Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](widget/pane_grid/struct.Style.html "struct iced::widget::pane_grid::Style") + '\_>) -> [Style](widget/pane_grid/struct.Style.html "struct iced::widget::pane_grid::Style")
|
||
|
||
The [`Style`](widget/pane_grid/struct.Style.html "struct iced::widget::pane_grid::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pick_list.rs.html#871)[§](#impl-Catalog-for-Theme-6)
|
||
|
||
### impl [Catalog](widget/pick_list/trait.Catalog.html "trait iced::widget::pick_list::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pick_list.rs.html#872)[§](#associatedtype.Class-5)
|
||
|
||
#### type [Class](widget/pick_list/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/pick_list/enum.Status.html "enum iced::widget::pick_list::Status")) -> [Style](widget/pick_list/struct.Style.html "struct iced::widget::pick_list::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/pick_list/trait.Catalog.html "trait iced::widget::pick_list::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pick_list.rs.html#874)[§](#method.default-5)
|
||
|
||
#### fn [default](widget/pick_list/trait.Catalog.html#tymethod.default)<'a>() -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/pick_list/enum.Status.html "enum iced::widget::pick_list::Status")) -> [Style](widget/pick_list/struct.Style.html "struct iced::widget::pick_list::Style") + 'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/pick_list/trait.Catalog.html "trait iced::widget::pick_list::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pick_list.rs.html#878)[§](#method.style-5)
|
||
|
||
#### fn [style](widget/pick_list/trait.Catalog.html#tymethod.style)( &self, class: &[Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/pick_list/enum.Status.html "enum iced::widget::pick_list::Status")) -> [Style](widget/pick_list/struct.Style.html "struct iced::widget::pick_list::Style") + '\_>, status: [Status](widget/pick_list/enum.Status.html "enum iced::widget::pick_list::Status"), ) -> [Style](widget/pick_list/struct.Style.html "struct iced::widget::pick_list::Style")
|
||
|
||
The [`Style`](widget/pick_list/struct.Style.html "struct iced::widget::pick_list::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/pick_list.rs.html#854)[§](#method.default_menu-1)
|
||
|
||
#### fn [default\_menu](widget/pick_list/trait.Catalog.html#method.default_menu)<'a>() -> Self::[Class](overlay/menu/trait.Catalog.html#associatedtype.Class "type iced::overlay::menu::Catalog::Class")<'a>
|
||
|
||
The default class for the menu of the [`PickList`](widget/struct.PickList.html "struct iced::widget::PickList").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/progress_bar.rs.html#238)[§](#impl-Catalog-for-Theme-7)
|
||
|
||
### impl [Catalog](widget/progress_bar/trait.Catalog.html "trait iced::widget::progress_bar::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/progress_bar.rs.html#239)[§](#associatedtype.Class-6)
|
||
|
||
#### type [Class](widget/progress_bar/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](widget/progress_bar/struct.Style.html "struct iced::widget::progress_bar::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/progress_bar/trait.Catalog.html "trait iced::widget::progress_bar::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/progress_bar.rs.html#241)[§](#method.default-6)
|
||
|
||
#### fn [default](widget/progress_bar/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/progress_bar/trait.Catalog.html "trait iced::widget::progress_bar::Catalog")>::[Class](widget/progress_bar/trait.Catalog.html#associatedtype.Class "type iced::widget::progress_bar::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/progress_bar/trait.Catalog.html "trait iced::widget::progress_bar::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/progress_bar.rs.html#245)[§](#method.style-6)
|
||
|
||
#### fn [style](widget/progress_bar/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/progress_bar/trait.Catalog.html "trait iced::widget::progress_bar::Catalog")>::[Class](widget/progress_bar/trait.Catalog.html#associatedtype.Class "type iced::widget::progress_bar::Catalog::Class")<'\_>) -> [Style](widget/progress_bar/struct.Style.html "struct iced::widget::progress_bar::Style")
|
||
|
||
The [`Style`](widget/progress_bar/struct.Style.html "struct iced::widget::progress_bar::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/radio.rs.html#503)[§](#impl-Catalog-for-Theme-8)
|
||
|
||
### impl [Catalog](widget/radio/trait.Catalog.html "trait iced::widget::radio::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/radio.rs.html#504)[§](#associatedtype.Class-7)
|
||
|
||
#### type [Class](widget/radio/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme"), [Status](widget/radio/enum.Status.html "enum iced::widget::radio::Status")) -> [Style](widget/radio/struct.Style.html "struct iced::widget::radio::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/radio/trait.Catalog.html "trait iced::widget::radio::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/radio.rs.html#506)[§](#method.default-7)
|
||
|
||
#### fn [default](widget/radio/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/radio/trait.Catalog.html "trait iced::widget::radio::Catalog")>::[Class](widget/radio/trait.Catalog.html#associatedtype.Class "type iced::widget::radio::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/radio/trait.Catalog.html "trait iced::widget::radio::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/radio.rs.html#510)[§](#method.style-7)
|
||
|
||
#### fn [style](widget/radio/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/radio/trait.Catalog.html "trait iced::widget::radio::Catalog")>::[Class](widget/radio/trait.Catalog.html#associatedtype.Class "type iced::widget::radio::Catalog::Class")<'\_>, status: [Status](widget/radio/enum.Status.html "enum iced::widget::radio::Status")) -> [Style](widget/radio/struct.Style.html "struct iced::widget::radio::Style")
|
||
|
||
The [`Style`](widget/radio/struct.Style.html "struct iced::widget::radio::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/rule.rs.html#283)[§](#impl-Catalog-for-Theme-9)
|
||
|
||
### impl [Catalog](widget/rule/trait.Catalog.html "trait iced::widget::rule::Catalog") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/rule.rs.html#284)[§](#associatedtype.Class-8)
|
||
|
||
#### type [Class](widget/rule/trait.Catalog.html#associatedtype.Class)<'a> = [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Fn](https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html "trait core::ops::function::Fn")(&[Theme](enum.Theme.html "enum iced::Theme")) -> [Style](widget/rule/struct.Style.html "struct iced::widget::rule::Style") + 'a>
|
||
|
||
The item class of the [`Catalog`](widget/rule/trait.Catalog.html "trait iced::widget::rule::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/rule.rs.html#286)[§](#method.default-8)
|
||
|
||
#### fn [default](widget/rule/trait.Catalog.html#tymethod.default)<'a>() -> <[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/rule/trait.Catalog.html "trait iced::widget::rule::Catalog")>::[Class](widget/rule/trait.Catalog.html#associatedtype.Class "type iced::widget::rule::Catalog::Class")<'a>
|
||
|
||
The default class produced by the [`Catalog`](widget/rule/trait.Catalog.html "trait iced::widget::rule::Catalog").
|
||
|
||
[Source](https://docs.rs/iced_widget/0.13.4/x86_64-unknown-linux-gnu/src/iced_widget/rule.rs.html#290)[§](#method.style-8)
|
||
|
||
#### fn [style](widget/rule/trait.Catalog.html#tymethod.style)(&self, class: &<[Theme](enum.Theme.html "enum iced::Theme") as [Catalog](widget/rule/trait.Catalog.html "trait iced::widget::rule::Catalog")>::[Class](widget/rule/trait.Catalog.html#associatedtype.Class "type iced::widget::rule::Catalog::Class")<'\_>) -> [Style](widget/rule/struct.Style.html "struct iced::widget::rule::Style")
|
||
|
||
The [`Style`](widget/rule/struct.Style.html "struct iced::widget::rule::Style") of a class with the given status.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#10)[§](#impl-Clone-for-Theme)
|
||
|
||
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#10)[§](#method.clone)
|
||
|
||
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)(&self) -> [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
|
||
|
||
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#213-215)[§](#method.clone_from)
|
||
|
||
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)(&mut self, source: &Self)
|
||
|
||
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#10)[§](#impl-Debug-for-Theme)
|
||
|
||
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#10)[§](#method.fmt)
|
||
|
||
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")<'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<[()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error")>
|
||
|
||
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#163)[§](#impl-Default-for-Theme)
|
||
|
||
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#164)[§](#method.default-16)
|
||
|
||
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)() -> [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
|
||
|
||
[Source](https://docs.rs/iced_winit/0.13.0/x86_64-unknown-linux-gnu/src/iced_winit/program.rs.html#157)[§](#impl-DefaultStyle-for-Theme)
|
||
|
||
### impl [DefaultStyle](application/trait.DefaultStyle.html "trait iced::application::DefaultStyle") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_winit/0.13.0/x86_64-unknown-linux-gnu/src/iced_winit/program.rs.html#158)[§](#method.default_style)
|
||
|
||
#### fn [default\_style](application/trait.DefaultStyle.html#tymethod.default_style)(&self) -> [Appearance](application/struct.Appearance.html "struct iced::application::Appearance")
|
||
|
||
Returns the default style of a [`Program`](https://docs.rs/iced_winit/0.13.0/x86_64-unknown-linux-gnu/iced_winit/program/trait.Program.html "trait iced_winit::program::Program").
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#185)[§](#impl-Display-for-Theme)
|
||
|
||
### impl [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#186)[§](#method.fmt-1)
|
||
|
||
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")<'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<[()](https://doc.rust-lang.org/nightly/std/primitive.unit.html), [Error](https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html "struct core::fmt::Error")>
|
||
|
||
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt)
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#10)[§](#impl-PartialEq-for-Theme)
|
||
|
||
### impl [PartialEq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html "trait core::cmp::PartialEq") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#10)[§](#method.eq)
|
||
|
||
#### fn [eq](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq)(&self, other: &[Theme](enum.Theme.html "enum iced::Theme")) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Tests for `self` and `other` values to be equal, and is used by `==`.
|
||
|
||
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#265)[§](#method.ne)
|
||
|
||
#### fn [ne](https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne)(&self, other: [&Rhs](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)
|
||
|
||
Tests for `!=`. The default implementation is almost always sufficient,
|
||
and should not be overridden without very good reason.
|
||
|
||
[Source](https://docs.rs/iced_core/0.13.2/x86_64-unknown-linux-gnu/src/iced_core/theme.rs.html#10)[§](#impl-StructuralPartialEq-for-Theme)
|
||
|
||
### impl [StructuralPartialEq](https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html "trait core::marker::StructuralPartialEq") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Theme)
|
||
|
||
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[§](#impl-RefUnwindSafe-for-Theme)
|
||
|
||
### impl [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[§](#impl-Send-for-Theme)
|
||
|
||
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[§](#impl-Sync-for-Theme)
|
||
|
||
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[§](#impl-Unpin-for-Theme)
|
||
|
||
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
[§](#impl-UnwindSafe-for-Theme)
|
||
|
||
### impl [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [Theme](enum.Theme.html "enum iced::Theme")
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#483)[§](#impl-CloneToUninit-for-T)
|
||
|
||
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#485)[§](#method.clone_to_uninit)
|
||
|
||
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)(&self, dest: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
|
||
|
||
🔬This is a nightly-only experimental API. (`clone_to_uninit`)
|
||
|
||
Performs copy-assignment from `self` to `dest`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#203)[§](#impl-DowncastSync-for-T)
|
||
|
||
### impl<T> [DowncastSync](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html "trait downcast_rs::DowncastSync") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#204)[§](#method.into_any_arc)
|
||
|
||
#### fn [into\_any\_arc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc)(self: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<T>) -> [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync")>
|
||
|
||
Convert `Arc<Trait>` (where `Trait: Downcast`) to `Arc<Any>`. `Arc<Any>` can then be
|
||
further `downcast` into `Arc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#31-33)[§](#impl-NoneValue-for-T)
|
||
|
||
### impl<T> [NoneValue](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html "trait zvariant::optional::NoneValue") for T where T: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#35)[§](#associatedtype.NoneType)
|
||
|
||
#### type [NoneType](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html#associatedtype.NoneType) = T
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#37)[§](#method.null_value)
|
||
|
||
#### fn [null\_value](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html#tymethod.null_value)() -> T
|
||
|
||
The none-equivalent value.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#347)[§](#impl-ReadPrimitive%3CR%3E-for-P)
|
||
|
||
### impl<R, P> [ReadPrimitive](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html "trait lebe::io::ReadPrimitive")<R> for P where R: [Read](https://doc.rust-lang.org/nightly/std/io/trait.Read.html "trait std::io::Read") + [ReadEndian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadEndian.html "trait lebe::io::ReadEndian")<P>, P: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#377)[§](#method.read_from_little_endian)
|
||
|
||
#### fn [read\_from\_little\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_little_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_little_endian()`.
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#382)[§](#method.read_from_big_endian)
|
||
|
||
#### fn [read\_from\_big\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_big_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_big_endian()`.
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#387)[§](#method.read_from_native_endian)
|
||
|
||
#### fn [read\_from\_native\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_native_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_native_endian()`.
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84)[§](#impl-ToOwned-for-T)
|
||
|
||
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86)[§](#associatedtype.Owned)
|
||
|
||
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned) = T
|
||
|
||
The resulting type after obtaining ownership.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87)[§](#method.to_owned)
|
||
|
||
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)(&self) -> T
|
||
|
||
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91)[§](#method.clone_into)
|
||
|
||
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
|
||
|
||
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
|
||
|
||
[Source](https://docs.rs/smol_str/0.2.2/x86_64-unknown-linux-gnu/src/smol_str/lib.rs.html#760-762)[§](#impl-ToSmolStr-for-T)
|
||
|
||
### impl<T> [ToSmolStr](https://docs.rs/smol_str/0.2.2/x86_64-unknown-linux-gnu/smol_str/trait.ToSmolStr.html "trait smol_str::ToSmolStr") for T where T: [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://docs.rs/smol_str/0.2.2/x86_64-unknown-linux-gnu/src/smol_str/lib.rs.html#764)[§](#method.to_smolstr)
|
||
|
||
#### fn [to\_smolstr](https://docs.rs/smol_str/0.2.2/x86_64-unknown-linux-gnu/smol_str/trait.ToSmolStr.html#tymethod.to_smolstr)(&self) -> [SmolStr](https://docs.rs/smol_str/0.2.2/x86_64-unknown-linux-gnu/smol_str/struct.SmolStr.html "struct smol_str::SmolStr")
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2806)[§](#impl-ToString-for-T)
|
||
|
||
### impl<T> [ToString](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html "trait alloc::string::ToString") for T where T: [Display](https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html "trait core::fmt::Display") + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2808)[§](#method.to_string)
|
||
|
||
#### fn [to\_string](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string)(&self) -> [String](https://doc.rust-lang.org/nightly/alloc/string/struct.String.html "struct alloc::string::String")
|
||
|
||
Converts the given value to a `String`. [Read more](https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#8)[§](#impl-MaybeSend-for-T)
|
||
|
||
### impl<T> [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#15)[§](#impl-MaybeSync-for-T)
|
||
|
||
### impl<T> [MaybeSync](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSync.html "trait iced_futures::maybe::platform::MaybeSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7040)[§](#impl-WasmNotSend-for-T)
|
||
|
||
### impl<T> [WasmNotSend](widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7024)[§](#impl-WasmNotSendSync-for-T)
|
||
|
||
### impl<T> [WasmNotSendSync](widget/shader/wgpu/trait.WasmNotSendSync.html "trait iced::widget::shader::wgpu::WasmNotSendSync") for T where T: [WasmNotSend](widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") + [WasmNotSync](widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7073)[§](#impl-WasmNotSync-for-T)
|
||
|
||
### impl<T> [WasmNotSync](widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/settings/index.html](https://docs.rs/iced/0.13.1/iced/settings/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module settingsCopy item path
|
||
|
||
[Source](../../src/iced/settings.rs.html#1-59)
|
||
|
||
Expand description
|
||
|
||
Configure your application.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
: The settings of an iced program.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/settings/struct.Settings.html](https://docs.rs/iced/0.13.1/iced/settings/struct.Settings.html)
|
||
|
||
[iced](../index.html)::[settings](index.html)
|
||
|
||
# Struct SettingsCopy item path
|
||
|
||
[Source](../../src/iced/settings.rs.html#8-38)
|
||
|
||
```
|
||
pub struct Settings {
|
||
pub id: Option<String>,
|
||
pub fonts: Vec<Cow<'static, [u8]>>,
|
||
pub default_font: Font,
|
||
pub default_text_size: Pixels,
|
||
pub antialiasing: bool,
|
||
}
|
||
```
|
||
|
||
Expand description
|
||
|
||
The settings of an iced program.
|
||
|
||
## Fields[§](#fields)
|
||
|
||
[§](#structfield.id)`id: Option<String>`
|
||
|
||
The identifier of the application.
|
||
|
||
If provided, this identifier may be used to identify the application or
|
||
communicate with it through the windowing system.
|
||
|
||
[§](#structfield.fonts)`fonts: Vec<Cow<'static, [u8]>>`
|
||
|
||
The fonts to load on boot.
|
||
|
||
[§](#structfield.default_font)`default_font: Font`
|
||
|
||
The default [`Font`](../struct.Font.html "struct iced::Font") to be used.
|
||
|
||
By default, it uses [`Family::SansSerif`](../font/enum.Family.html#variant.SansSerif "variant iced::font::Family::SansSerif").
|
||
|
||
[§](#structfield.default_text_size)`default_text_size: Pixels`
|
||
|
||
The text size that will be used by default.
|
||
|
||
The default value is `16.0`.
|
||
|
||
[§](#structfield.antialiasing)`antialiasing: bool`
|
||
|
||
If set to true, the renderer will try to perform antialiasing for some
|
||
primitives.
|
||
|
||
Enabling it can produce a smoother result in some widgets, like the
|
||
[`Canvas`](../widget/struct.Canvas.html "struct iced::widget::Canvas"), at a performance cost.
|
||
|
||
By default, it is disabled.
|
||
|
||
## Trait Implementations[§](#trait-implementations)
|
||
|
||
[Source](../../src/iced/settings.rs.html#7)[§](#impl-Clone-for-Settings)
|
||
|
||
### impl [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
[Source](../../src/iced/settings.rs.html#7)[§](#method.clone)
|
||
|
||
#### fn [clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)(&self) -> [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
Returns a duplicate of the value. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone)
|
||
|
||
1.0.0 · [Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#213-215)[§](#method.clone_from)
|
||
|
||
#### fn [clone\_from](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)(&mut self, source: &Self)
|
||
|
||
Performs copy-assignment from `source`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from)
|
||
|
||
[Source](../../src/iced/settings.rs.html#7)[§](#impl-Debug-for-Settings)
|
||
|
||
### impl [Debug](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html "trait core::fmt::Debug") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
[Source](../../src/iced/settings.rs.html#7)[§](#method.fmt)
|
||
|
||
#### fn [fmt](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)(&self, f: &mut [Formatter](https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html "struct core::fmt::Formatter")<'\_>) -> [Result](https://doc.rust-lang.org/nightly/core/fmt/type.Result.html "type core::fmt::Result")
|
||
|
||
Formats the value using the given formatter. [Read more](https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt)
|
||
|
||
[Source](../../src/iced/settings.rs.html#40-50)[§](#impl-Default-for-Settings)
|
||
|
||
### impl [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
[Source](../../src/iced/settings.rs.html#41-49)[§](#method.default)
|
||
|
||
#### fn [default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)() -> Self
|
||
|
||
Returns the “default value” for a type. [Read more](https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default)
|
||
|
||
[Source](../../src/iced/settings.rs.html#52-59)[§](#impl-From%3CSettings%3E-for-Settings)
|
||
|
||
### impl [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<[Settings](struct.Settings.html "struct iced::settings::Settings")> for [Settings](https://docs.rs/iced_winit/0.13.0/x86_64-unknown-linux-gnu/iced_winit/settings/struct.Settings.html "struct iced_winit::settings::Settings")
|
||
|
||
[Source](../../src/iced/settings.rs.html#53-58)[§](#method.from)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(settings: [Settings](struct.Settings.html "struct iced::settings::Settings")) -> [Settings](https://docs.rs/iced_winit/0.13.0/x86_64-unknown-linux-gnu/iced_winit/settings/struct.Settings.html "struct iced_winit::settings::Settings")
|
||
|
||
Converts to this type from the input type.
|
||
|
||
## Auto Trait Implementations[§](#synthetic-implementations)
|
||
|
||
[§](#impl-Freeze-for-Settings)
|
||
|
||
### impl [Freeze](https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html "trait core::marker::Freeze") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
[§](#impl-RefUnwindSafe-for-Settings)
|
||
|
||
### impl [RefUnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html "trait core::panic::unwind_safe::RefUnwindSafe") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
[§](#impl-Send-for-Settings)
|
||
|
||
### impl [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
[§](#impl-Sync-for-Settings)
|
||
|
||
### impl [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
[§](#impl-Unpin-for-Settings)
|
||
|
||
### impl [Unpin](https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html "trait core::marker::Unpin") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
[§](#impl-UnwindSafe-for-Settings)
|
||
|
||
### impl [UnwindSafe](https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html "trait core::panic::unwind_safe::UnwindSafe") for [Settings](struct.Settings.html "struct iced::settings::Settings")
|
||
|
||
## Blanket Implementations[§](#blanket-implementations)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#205-210)[§](#impl-AdaptInto%3CD,+Swp,+Dwp,+T%3E-for-S)
|
||
|
||
### impl<S, D, Swp, Dwp, T> [AdaptInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html "trait palette::chromatic_adaptation::AdaptInto")<D, Swp, Dwp, T> for S where T: [Real](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Real.html "trait palette::num::Real") + [Zero](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Zero.html "trait palette::num::Zero") + [Arithmetics](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/num/trait.Arithmetics.html "trait palette::num::Arithmetics") + [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"), Swp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, Dwp: [WhitePoint](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/white_point/trait.WhitePoint.html "trait palette::white_point::WhitePoint")<T>, D: [AdaptFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptFrom.html "trait palette::chromatic_adaptation::AdaptFrom")<S, Swp, Dwp, T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#213)[§](#method.adapt_into_using)
|
||
|
||
#### fn [adapt\_into\_using](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#tymethod.adapt_into_using)<M>(self, method: M) -> D where M: [TransformMatrix](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.TransformMatrix.html "trait palette::chromatic_adaptation::TransformMatrix")<T>,
|
||
|
||
Convert the source color to the destination color using the specified
|
||
method.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/chromatic_adaptation.rs.html#196)[§](#method.adapt_into)
|
||
|
||
#### fn [adapt\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/chromatic_adaptation/trait.AdaptInto.html#method.adapt_into)(self) -> D
|
||
|
||
Convert the source color to the destination color using the bradford
|
||
method by default.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#138)[§](#impl-Any-for-T)
|
||
|
||
### impl<T> [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") for T where T: 'static + ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/any.rs.html#139)[§](#method.type_id)
|
||
|
||
#### fn [type\_id](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)(&self) -> [TypeId](https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html "struct core::any::TypeId")
|
||
|
||
Gets the `TypeId` of `self`. [Read more](https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#271-273)[§](#impl-ArraysFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html "trait palette::cast::from_into_arrays_traits::ArraysFrom")<C> for T where C: [IntoArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.IntoArrays.html "trait palette::cast::from_into_arrays_traits::IntoArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#276)[§](#method.arrays_from)
|
||
|
||
#### fn [arrays\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysFrom.html#tymethod.arrays_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of arrays.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#329-331)[§](#impl-ArraysInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ArraysInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html "trait palette::cast::from_into_arrays_traits::ArraysInto")<C> for T where C: [FromArrays](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.FromArrays.html "trait palette::cast::from_into_arrays_traits::FromArrays")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_arrays_traits.rs.html#334)[§](#method.arrays_into)
|
||
|
||
#### fn [arrays\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_arrays_traits/trait.ArraysInto.html#tymethod.arrays_into)(self) -> C
|
||
|
||
Cast this collection of arrays into a collection of colors.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209)[§](#impl-Borrow%3CT%3E-for-T)
|
||
|
||
### impl<T> [Borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html "trait core::borrow::Borrow")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211)[§](#method.borrow)
|
||
|
||
#### fn [borrow](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Immutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217)[§](#impl-BorrowMut%3CT%3E-for-T)
|
||
|
||
### impl<T> [BorrowMut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html "trait core::borrow::BorrowMut")<T> for T where T: ?[Sized](https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html "trait core::marker::Sized"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218)[§](#method.borrow_mut)
|
||
|
||
#### fn [borrow\_mut](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)(&mut self) -> [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably borrows from an owned value. [Read more](https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#143-145)[§](#impl-Cam16IntoUnclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T> for U where T: [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#147)[§](#associatedtype.Scalar-1)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar) = <T as [FromCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html "trait palette::cam16::FromCam16Unclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.FromCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::FromCam16Unclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#149)[§](#method.cam16_into_unclamped)
|
||
|
||
#### fn [cam16\_into\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#tymethod.cam16_into_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [Cam16IntoUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html "trait palette::cam16::Cam16IntoUnclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16IntoUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16IntoUnclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#483)[§](#impl-CloneToUninit-for-T)
|
||
|
||
### impl<T> [CloneToUninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html "trait core::clone::CloneToUninit") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/clone.rs.html#485)[§](#method.clone_to_uninit)
|
||
|
||
#### unsafe fn [clone\_to\_uninit](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)(&self, dest: [\*mut](https://doc.rust-lang.org/nightly/std/primitive.pointer.html) [u8](https://doc.rust-lang.org/nightly/std/primitive.u8.html))
|
||
|
||
🔬This is a nightly-only experimental API. (`clone_to_uninit`)
|
||
|
||
Performs copy-assignment from `self` to `dest`. [Read more](https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#414-416)[§](#impl-ComponentsFrom%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [ComponentsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html "trait palette::cast::from_into_components_traits::ComponentsFrom")<C> for T where C: [IntoComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.IntoComponents.html "trait palette::cast::from_into_components_traits::IntoComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#419)[§](#method.components_from)
|
||
|
||
#### fn [components\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.ComponentsFrom.html#tymethod.components_from)(colors: C) -> T
|
||
|
||
Cast a collection of colors into a collection of color components.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#148)[§](#impl-Downcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html "trait khronos_egl::Downcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#149)[§](#method.downcast)
|
||
|
||
#### fn [downcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Downcast.html#tymethod.downcast)(&self) -> [&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#189)[§](#impl-Downcast-for-T)
|
||
|
||
### impl<T> [Downcast](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html "trait downcast_rs::Downcast") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#190)[§](#method.into_any)
|
||
|
||
#### fn [into\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any)(self: [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<T>) -> [Box](https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html "struct alloc::boxed::Box")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `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](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#191)[§](#method.into_any_rc)
|
||
|
||
#### fn [into\_any\_rc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.into_any_rc)(self: [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<T>) -> [Rc](https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html "struct alloc::rc::Rc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any")>
|
||
|
||
Convert `Rc<Trait>` (where `Trait: Downcast`) to `Rc<Any>`. `Rc<Any>` can then be
|
||
further `downcast` into `Rc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#192)[§](#method.as_any)
|
||
|
||
#### fn [as\_any](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any)(&self) -> &(dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&Any`’s vtable from `&Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#193)[§](#method.as_any_mut)
|
||
|
||
#### fn [as\_any\_mut](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.Downcast.html#tymethod.as_any_mut)(&mut self) -> &mut (dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + 'static)
|
||
|
||
Convert `&mut Trait` (where `Trait: Downcast`) to `&Any`. This is needed since Rust cannot
|
||
generate `&mut Any`’s vtable from `&mut Trait`’s.
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#203)[§](#impl-DowncastSync-for-T)
|
||
|
||
### impl<T> [DowncastSync](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html "trait downcast_rs::DowncastSync") for T where T: [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/src/downcast_rs/lib.rs.html#204)[§](#method.into_any_arc)
|
||
|
||
#### fn [into\_any\_arc](https://docs.rs/downcast-rs/1.2.1/x86_64-unknown-linux-gnu/downcast_rs/trait.DowncastSync.html#tymethod.into_any_arc)(self: [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<T>) -> [Arc](https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html "struct alloc::sync::Arc")<dyn [Any](https://doc.rust-lang.org/nightly/core/any/trait.Any.html "trait core::any::Any") + [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send") + [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync")>
|
||
|
||
Convert `Arc<Trait>` (where `Trait: Downcast`) to `Arc<Any>`. `Arc<Any>` can then be
|
||
further `downcast` into `Arc<ConcreteType>` where `ConcreteType` implements `Trait`.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#791)[§](#impl-From%3CT%3E-for-T)
|
||
|
||
### impl<T> [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T> for T
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794)[§](#method.from-1)
|
||
|
||
#### fn [from](https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from)(t: T) -> T
|
||
|
||
Returns the argument unchanged.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#65)[§](#impl-FromAngle%3CT%3E-for-T)
|
||
|
||
### impl<T> [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#67)[§](#method.from_angle)
|
||
|
||
#### fn [from\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html#tymethod.from_angle)(angle: T) -> T
|
||
|
||
Performs a conversion from `angle`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#85)[§](#impl-FromStimulus%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [FromStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html "trait palette::stimulus::FromStimulus")<U> for T where U: [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#87)[§](#method.from_stimulus)
|
||
|
||
#### fn [from\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.FromStimulus.html#tymethod.from_stimulus)(other: U) -> T
|
||
|
||
Converts `other` into `Self`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#325)[§](#impl-Instrument-for-T)
|
||
|
||
### impl<T> [Instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html "trait tracing::instrument::Instrument") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#86)[§](#method.instrument)
|
||
|
||
#### fn [instrument](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)(self, span: [Span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span")) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the provided [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.instrument)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#128)[§](#method.in_current_span)
|
||
|
||
#### fn [in\_current\_span](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)(self) -> [Instrumented](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.Instrumented.html "struct tracing::instrument::Instrumented")<Self>
|
||
|
||
Instruments this type with the [current](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html#method.current "associated function tracing::span::Span::current") [`Span`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/span/struct.Span.html "struct tracing::span::Span"), returning an
|
||
`Instrumented` wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.Instrument.html#method.in_current_span)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#773-775)[§](#impl-Into%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<U> for T where U: [From](https://doc.rust-lang.org/nightly/core/convert/trait.From.html "trait core::convert::From")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#783)[§](#method.into)
|
||
|
||
#### fn [into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into)(self) -> U
|
||
|
||
Calls `U::from(self)`.
|
||
|
||
That is, this conversion is whatever the implementation of
|
||
`From<T> for U` chooses to do.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#78-80)[§](#impl-IntoAngle%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html "trait palette::angle::IntoAngle")<U> for T where U: [FromAngle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.FromAngle.html "trait palette::angle::FromAngle")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/angle.rs.html#83)[§](#method.into_angle)
|
||
|
||
#### fn [into\_angle](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/angle/trait.IntoAngle.html#tymethod.into_angle)(self) -> U
|
||
|
||
Performs a conversion into `T`.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#114-116)[§](#impl-IntoCam16Unclamped%3CWpParam,+T%3E-for-U)
|
||
|
||
### impl<WpParam, T, U> [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T> for U where T: [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#118)[§](#associatedtype.Scalar)
|
||
|
||
#### type [Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar) = <T as [Cam16FromUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html "trait palette::cam16::Cam16FromUnclamped")<WpParam, U>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.Cam16FromUnclamped.html#associatedtype.Scalar "type palette::cam16::Cam16FromUnclamped::Scalar")
|
||
|
||
The number type that’s used in `parameters` when converting.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cam16.rs.html#120)[§](#method.into_cam16_unclamped)
|
||
|
||
#### fn [into\_cam16\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#tymethod.into_cam16_unclamped)( self, parameters: [BakedParameters](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/parameters/struct.BakedParameters.html "struct palette::cam16::parameters::BakedParameters")<WpParam, <U as [IntoCam16Unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html "trait palette::cam16::IntoCam16Unclamped")<WpParam, T>>::[Scalar](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cam16/trait.IntoCam16Unclamped.html#associatedtype.Scalar "type palette::cam16::IntoCam16Unclamped::Scalar")>, ) -> T
|
||
|
||
Converts `self` into `C`, using the provided parameters.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#129-131)[§](#impl-IntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html "trait palette::convert::from_into_color::IntoColor")<U> for T where U: [FromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.FromColor.html "trait palette::convert::from_into_color::FromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color.rs.html#134)[§](#method.into_color)
|
||
|
||
#### fn [into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)(self) -> U
|
||
|
||
Convert into T with values clamped to the color defined bounds [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color/trait.IntoColor.html#tymethod.into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#95-97)[§](#impl-IntoColorUnclamped%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [IntoColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html "trait palette::convert::from_into_color_unclamped::IntoColorUnclamped")<U> for T where U: [FromColorUnclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.FromColorUnclamped.html "trait palette::convert::from_into_color_unclamped::FromColorUnclamped")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/from_into_color_unclamped.rs.html#100)[§](#method.into_color_unclamped)
|
||
|
||
#### fn [into\_color\_unclamped](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)(self) -> U
|
||
|
||
Convert into T. The resulting color might be invalid in its color space [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/from_into_color_unclamped/trait.IntoColorUnclamped.html#tymethod.into_color_unclamped)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#64)[§](#impl-IntoEither-for-T)
|
||
|
||
### impl<T> [IntoEither](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html "trait either::into_either::IntoEither") for T
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#29)[§](#method.into_either)
|
||
|
||
#### fn [into\_either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)(self, into\_left: [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html)) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self>
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left` is `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either)
|
||
|
||
[Source](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/src/either/into_either.rs.html#55-57)[§](#method.into_either_with)
|
||
|
||
#### fn [into\_either\_with](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)<F>(self, into\_left: F) -> [Either](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")<Self, Self> where F: [FnOnce](https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html "trait core::ops::function::FnOnce")(&Self) -> [bool](https://doc.rust-lang.org/nightly/std/primitive.bool.html),
|
||
|
||
Converts `self` into a [`Left`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Left "variant either::Either::Left") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
if `into_left(&self)` returns `true`.
|
||
Converts `self` into a [`Right`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html#variant.Right "variant either::Either::Right") variant of [`Either<Self, Self>`](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/enum.Either.html "enum either::Either")
|
||
otherwise. [Read more](https://docs.rs/either/1.15.0/x86_64-unknown-linux-gnu/either/into_either/trait.IntoEither.html#method.into_either_with)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#109)[§](#impl-IntoStimulus%3CT%3E-for-T)
|
||
|
||
### impl<T> [IntoStimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html "trait palette::stimulus::IntoStimulus")<T> for T
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/stimulus.rs.html#111)[§](#method.into_stimulus)
|
||
|
||
#### fn [into\_stimulus](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/stimulus/trait.IntoStimulus.html#tymethod.into_stimulus)(self) -> T
|
||
|
||
Converts `self` into `T`, while performing the appropriate scaling,
|
||
rounding and clamping.
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#31-33)[§](#impl-NoneValue-for-T)
|
||
|
||
### impl<T> [NoneValue](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html "trait zvariant::optional::NoneValue") for T where T: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#35)[§](#associatedtype.NoneType)
|
||
|
||
#### type [NoneType](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html#associatedtype.NoneType) = T
|
||
|
||
[Source](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/src/zvariant/optional.rs.html#37)[§](#method.null_value)
|
||
|
||
#### fn [null\_value](https://docs.rs/zvariant/4.2.0/x86_64-unknown-linux-gnu/zvariant/optional/trait.NoneValue.html#tymethod.null_value)() -> T
|
||
|
||
The none-equivalent value.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#194)[§](#impl-Pointable-for-T)
|
||
|
||
### impl<T> [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable") for T
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#195)[§](#associatedconstant.ALIGN)
|
||
|
||
#### const [ALIGN](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedconstant.ALIGN): [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
The alignment of pointer.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#197)[§](#associatedtype.Init)
|
||
|
||
#### type [Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init) = T
|
||
|
||
The type for initializers.
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#199)[§](#method.init)
|
||
|
||
#### unsafe fn [init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)(init: <T as [Pointable](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html "trait crossbeam_epoch::atomic::Pointable")>::[Init](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#associatedtype.Init "type crossbeam_epoch::atomic::Pointable::Init")) -> [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)
|
||
|
||
Initializes a with the given initializer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.init)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#203)[§](#method.deref)
|
||
|
||
#### unsafe fn [deref](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#207)[§](#method.deref_mut)
|
||
|
||
#### unsafe fn [deref\_mut](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)<'a>(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html)) -> [&'a mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)
|
||
|
||
Mutably dereferences the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.deref_mut)
|
||
|
||
[Source](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/src/crossbeam_epoch/atomic.rs.html#211)[§](#method.drop)
|
||
|
||
#### unsafe fn [drop](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)(ptr: [usize](https://doc.rust-lang.org/nightly/std/primitive.usize.html))
|
||
|
||
Drops the object pointed to by the given pointer. [Read more](https://docs.rs/crossbeam-epoch/0.9.18/x86_64-unknown-linux-gnu/crossbeam_epoch/atomic/trait.Pointable.html#tymethod.drop)
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#347)[§](#impl-ReadPrimitive%3CR%3E-for-P)
|
||
|
||
### impl<R, P> [ReadPrimitive](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html "trait lebe::io::ReadPrimitive")<R> for P where R: [Read](https://doc.rust-lang.org/nightly/std/io/trait.Read.html "trait std::io::Read") + [ReadEndian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadEndian.html "trait lebe::io::ReadEndian")<P>, P: [Default](https://doc.rust-lang.org/nightly/core/default/trait.Default.html "trait core::default::Default"),
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#377)[§](#method.read_from_little_endian)
|
||
|
||
#### fn [read\_from\_little\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_little_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_little_endian()`.
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#382)[§](#method.read_from_big_endian)
|
||
|
||
#### fn [read\_from\_big\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_big_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_big_endian()`.
|
||
|
||
[Source](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/src/lebe/lib.rs.html#387)[§](#method.read_from_native_endian)
|
||
|
||
#### fn [read\_from\_native\_endian](https://docs.rs/lebe/0.5.2/x86_64-unknown-linux-gnu/lebe/io/trait.ReadPrimitive.html#method.read_from_native_endian)(read: [&mut R](https://doc.rust-lang.org/nightly/std/primitive.reference.html)) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<Self, [Error](https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html "struct std::io::error::Error")>
|
||
|
||
Read this value from the supplied reader. Same as `ReadEndian::read_from_native_endian()`.
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#34)[§](#impl-Same-for-T)
|
||
|
||
### impl<T> [Same](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html "trait typenum::type_operators::Same") for T
|
||
|
||
[Source](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/src/typenum/type_operators.rs.html#35)[§](#associatedtype.Output)
|
||
|
||
#### type [Output](https://docs.rs/typenum/1.18.0/x86_64-unknown-linux-gnu/typenum/type_operators/trait.Same.html#associatedtype.Output) = T
|
||
|
||
Should always be `Self`
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84)[§](#impl-ToOwned-for-T)
|
||
|
||
### impl<T> [ToOwned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html "trait alloc::borrow::ToOwned") for T where T: [Clone](https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html "trait core::clone::Clone"),
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86)[§](#associatedtype.Owned)
|
||
|
||
#### type [Owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned) = T
|
||
|
||
The resulting type after obtaining ownership.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87)[§](#method.to_owned)
|
||
|
||
#### fn [to\_owned](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)(&self) -> T
|
||
|
||
Creates owned data from borrowed data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91)[§](#method.clone_into)
|
||
|
||
#### fn [clone\_into](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)(&self, target: [&mut T](https://doc.rust-lang.org/nightly/std/primitive.reference.html))
|
||
|
||
Uses borrowed data to replace owned data, usually by cloning. [Read more](https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#584-586)[§](#impl-TryComponentsInto%3CC%3E-for-T)
|
||
|
||
### impl<T, C> [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C> for T where C: [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#588)[§](#associatedtype.Error-2)
|
||
|
||
#### type [Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error) = <C as [TryFromComponents](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html "trait palette::cast::from_into_components_traits::TryFromComponents")<T>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryFromComponents.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryFromComponents::Error")
|
||
|
||
The error for when `try_into_colors` fails to cast.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_components_traits.rs.html#591)[§](#method.try_components_into)
|
||
|
||
#### fn [try\_components\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<C, <T as [TryComponentsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html "trait palette::cast::from_into_components_traits::TryComponentsInto")<C>>::[Error](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#associatedtype.Error "type palette::cast::from_into_components_traits::TryComponentsInto::Error")>
|
||
|
||
Try to cast this collection of color components into a collection of
|
||
colors. [Read more](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_components_traits/trait.TryComponentsInto.html#tymethod.try_components_into)
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#833-835)[§](#impl-TryFrom%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U> for T where U: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#837)[§](#associatedtype.Error-1)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error) = [Infallible](https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html "enum core::convert::Infallible")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#840)[§](#method.try_from)
|
||
|
||
#### fn [try\_from](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from)(value: U) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<T, <T as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<U>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#817-819)[§](#impl-TryInto%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryInto](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html "trait core::convert::TryInto")<U> for T where U: [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>,
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#821)[§](#associatedtype.Error)
|
||
|
||
#### type [Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error) = <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")
|
||
|
||
The type returned in the event of a conversion error.
|
||
|
||
[Source](https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#824)[§](#method.try_into)
|
||
|
||
#### fn [try\_into](https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, <U as [TryFrom](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html "trait core::convert::TryFrom")<T>>::[Error](https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error "type core::convert::TryFrom::Error")>
|
||
|
||
Performs the conversion.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#110-112)[§](#impl-TryIntoColor%3CU%3E-for-T)
|
||
|
||
### impl<T, U> [TryIntoColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html "trait palette::convert::try_from_into_color::TryIntoColor")<U> for T where U: [TryFromColor](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryFromColor.html "trait palette::convert::try_from_into_color::TryFromColor")<T>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/convert/try_from_into_color.rs.html#115)[§](#method.try_into_color)
|
||
|
||
#### fn [try\_into\_color](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)(self) -> [Result](https://doc.rust-lang.org/nightly/core/result/enum.Result.html "enum core::result::Result")<U, [OutOfBounds](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/struct.OutOfBounds.html "struct palette::convert::try_from_into_color::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](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/convert/try_from_into_color/trait.TryIntoColor.html#tymethod.try_into_color)
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#325-327)[§](#impl-UintsFrom%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsFrom](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html "trait palette::cast::from_into_uints_traits::UintsFrom")<C> for U where C: [IntoUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.IntoUints.html "trait palette::cast::from_into_uints_traits::IntoUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#330)[§](#method.uints_from)
|
||
|
||
#### fn [uints\_from](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsFrom.html#tymethod.uints_from)(colors: C) -> U
|
||
|
||
Cast a collection of colors into a collection of unsigned integers.
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#401-403)[§](#impl-UintsInto%3CC%3E-for-U)
|
||
|
||
### impl<C, U> [UintsInto](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html "trait palette::cast::from_into_uints_traits::UintsInto")<C> for U where C: [FromUints](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.FromUints.html "trait palette::cast::from_into_uints_traits::FromUints")<U>,
|
||
|
||
[Source](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/src/palette/cast/from_into_uints_traits.rs.html#406)[§](#method.uints_into)
|
||
|
||
#### fn [uints\_into](https://docs.rs/palette/0.7.6/x86_64-unknown-linux-gnu/palette/cast/from_into_uints_traits/trait.UintsInto.html#tymethod.uints_into)(self) -> C
|
||
|
||
Cast this collection of unsigned integers into a collection of colors.
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#158)[§](#impl-Upcast%3CT%3E-for-T)
|
||
|
||
### impl<T> [Upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html "trait khronos_egl::Upcast")<T> for T
|
||
|
||
[Source](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/src/khronos_egl/lib.rs.html#159)[§](#method.upcast)
|
||
|
||
#### fn [upcast](https://docs.rs/khronos-egl/6.0.0/x86_64-unknown-linux-gnu/khronos_egl/trait.Upcast.html#tymethod.upcast)(&self) -> [Option](https://doc.rust-lang.org/nightly/core/option/enum.Option.html "enum core::option::Option")<[&T](https://doc.rust-lang.org/nightly/std/primitive.reference.html)>
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#221-223)[§](#impl-VZip%3CV%3E-for-T)
|
||
|
||
### impl<V, T> [VZip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html "trait ppv_lite86::types::VZip")<V> for T where V: [MultiLane](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.MultiLane.html "trait ppv_lite86::types::MultiLane")<T>,
|
||
|
||
[Source](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/src/ppv_lite86/types.rs.html#226)[§](#method.vzip)
|
||
|
||
#### fn [vzip](https://docs.rs/ppv-lite86/0.2.21/x86_64-unknown-linux-gnu/ppv_lite86/types/trait.VZip.html#tymethod.vzip)(self) -> V
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#393)[§](#impl-WithSubscriber-for-T)
|
||
|
||
### impl<T> [WithSubscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html "trait tracing::instrument::WithSubscriber") for T
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#176-178)[§](#method.with_subscriber)
|
||
|
||
#### fn [with\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)<S>(self, subscriber: S) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self> where S: [Into](https://doc.rust-lang.org/nightly/core/convert/trait.Into.html "trait core::convert::Into")<[Dispatch](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/dispatcher/struct.Dispatch.html "struct tracing_core::dispatcher::Dispatch")>,
|
||
|
||
Attaches the provided [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber)
|
||
|
||
[Source](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/src/tracing/instrument.rs.html#228)[§](#method.with_current_subscriber)
|
||
|
||
#### fn [with\_current\_subscriber](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)(self) -> [WithDispatch](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch")<Self>
|
||
|
||
Attaches the current [default](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/dispatcher/index.html#setting-the-default-subscriber "mod tracing::dispatcher") [`Subscriber`](https://docs.rs/tracing-core/0.1.34/x86_64-unknown-linux-gnu/tracing_core/subscriber/trait.Subscriber.html "trait tracing_core::subscriber::Subscriber") to this type, returning a
|
||
[`WithDispatch`](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/struct.WithDispatch.html "struct tracing::instrument::WithDispatch") wrapper. [Read more](https://docs.rs/tracing/0.1.41/x86_64-unknown-linux-gnu/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber)
|
||
|
||
[Source](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/src/yoke/erased.rs.html#22)[§](#impl-ErasedDestructor-for-T)
|
||
|
||
### impl<T> [ErasedDestructor](https://docs.rs/yoke/0.8.0/x86_64-unknown-linux-gnu/yoke/erased/trait.ErasedDestructor.html "trait yoke::erased::ErasedDestructor") for T where T: 'static,
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#8)[§](#impl-MaybeSend-for-T)
|
||
|
||
### impl<T> [MaybeSend](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSend.html "trait iced_futures::maybe::platform::MaybeSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/src/iced_futures/maybe.rs.html#15)[§](#impl-MaybeSync-for-T)
|
||
|
||
### impl<T> [MaybeSync](https://docs.rs/iced_futures/0.13.2/x86_64-unknown-linux-gnu/iced_futures/maybe/platform/trait.MaybeSync.html "trait iced_futures::maybe::platform::MaybeSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7040)[§](#impl-WasmNotSend-for-T)
|
||
|
||
### impl<T> [WasmNotSend](../widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") for T where T: [Send](https://doc.rust-lang.org/nightly/core/marker/trait.Send.html "trait core::marker::Send"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7024)[§](#impl-WasmNotSendSync-for-T)
|
||
|
||
### impl<T> [WasmNotSendSync](../widget/shader/wgpu/trait.WasmNotSendSync.html "trait iced::widget::shader::wgpu::WasmNotSendSync") for T where T: [WasmNotSend](../widget/shader/wgpu/trait.WasmNotSend.html "trait iced::widget::shader::wgpu::WasmNotSend") + [WasmNotSync](../widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync"),
|
||
|
||
[Source](https://docs.rs/wgpu-types/0.19.2/x86_64-unknown-linux-gnu/src/wgpu_types/lib.rs.html#7073)[§](#impl-WasmNotSync-for-T)
|
||
|
||
### impl<T> [WasmNotSync](../widget/shader/wgpu/trait.WasmNotSync.html "trait iced::widget::shader::wgpu::WasmNotSync") for T where T: [Sync](https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html "trait core::marker::Sync"),
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/window/index.html](https://docs.rs/iced/0.13.1/iced/window/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module windowCopy item path
|
||
|
||
[Source](../../src/iced/window.rs.html#1-8)
|
||
|
||
Expand description
|
||
|
||
Configure the window of your application in native platforms.
|
||
|
||
## Modules[§](#modules)
|
||
|
||
[icon](icon/index.html "mod iced::window::icon")
|
||
: Attach an icon to the window of your application.
|
||
|
||
[raw\_window\_handle](raw_window_handle/index.html "mod iced::window::raw_window_handle")
|
||
: Interoperability library for Rust Windowing applications.
|
||
|
||
[screenshot](screenshot/index.html "mod iced::window::screenshot")
|
||
: Take screenshots of a window.
|
||
|
||
[settings](settings/index.html "mod iced::window::settings")
|
||
: Configure your windows.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Icon](struct.Icon.html "struct iced::window::Icon")
|
||
: An window icon normally used for the titlebar or taskbar.
|
||
|
||
[Id](struct.Id.html "struct iced::window::Id")
|
||
: The id of the window.
|
||
|
||
[Screenshot](struct.Screenshot.html "struct iced::window::Screenshot")
|
||
: Data of a screenshot, captured with `window::screenshot()`.
|
||
|
||
[Settings](struct.Settings.html "struct iced::window::Settings")
|
||
: The window settings of an application.
|
||
|
||
## Enums[§](#enums)
|
||
|
||
[Action](enum.Action.html "enum iced::window::Action")
|
||
: An operation to be performed on some window.
|
||
|
||
[Event](enum.Event.html "enum iced::window::Event")
|
||
: A window-related event.
|
||
|
||
[Level](enum.Level.html "enum iced::window::Level")
|
||
: A window level groups windows with respect to their z-position.
|
||
|
||
[Mode](enum.Mode.html "enum iced::window::Mode")
|
||
: The mode of a window-based application.
|
||
|
||
[Position](enum.Position.html "enum iced::window::Position")
|
||
: The position of a window in a given screen.
|
||
|
||
[RedrawRequest](enum.RedrawRequest.html "enum iced::window::RedrawRequest")
|
||
: A request to redraw a window.
|
||
|
||
[UserAttention](enum.UserAttention.html "enum iced::window::UserAttention")
|
||
: The type of user attention to request.
|
||
|
||
## Functions[§](#functions)
|
||
|
||
[change\_icon](fn.change_icon.html "fn iced::window::change_icon")
|
||
: Changes the [`Icon`](struct.Icon.html "struct iced::window::Icon") of the window.
|
||
|
||
[change\_level](fn.change_level.html "fn iced::window::change_level")
|
||
: Changes the window [`Level`](enum.Level.html "enum iced::window::Level").
|
||
|
||
[change\_mode](fn.change_mode.html "fn iced::window::change_mode")
|
||
: Changes the [`Mode`](enum.Mode.html "enum iced::window::Mode") of the window.
|
||
|
||
[close](fn.close.html "fn iced::window::close")
|
||
: Closes the window with `id`.
|
||
|
||
[close\_events](fn.close_events.html "fn iced::window::close_events")
|
||
: Subscribes to all [`Event::Closed`](enum.Event.html#variant.Closed "variant iced::window::Event::Closed") occurrences in the running application.
|
||
|
||
[close\_requests](fn.close_requests.html "fn iced::window::close_requests")
|
||
: Subscribes to all [`Event::CloseRequested`](enum.Event.html#variant.CloseRequested "variant iced::window::Event::CloseRequested") occurences in the running application.
|
||
|
||
[disable\_mouse\_passthrough](fn.disable_mouse_passthrough.html "fn iced::window::disable_mouse_passthrough")
|
||
: Disable mouse passthrough for the given window.
|
||
|
||
[drag](fn.drag.html "fn iced::window::drag")
|
||
: Begins dragging the window while the left mouse button is held.
|
||
|
||
[enable\_mouse\_passthrough](fn.enable_mouse_passthrough.html "fn iced::window::enable_mouse_passthrough")
|
||
: Enables mouse passthrough for the given window.
|
||
|
||
[events](fn.events.html "fn iced::window::events")
|
||
: Subscribes to all window events of the running application.
|
||
|
||
[frames](fn.frames.html "fn iced::window::frames")
|
||
: Subscribes to the frames of the window of the running application.
|
||
|
||
[gain\_focus](fn.gain_focus.html "fn iced::window::gain_focus")
|
||
: Brings the window to the front and sets input focus. Has no effect if the window is
|
||
already in focus, minimized, or not visible.
|
||
|
||
[get\_latest](fn.get_latest.html "fn iced::window::get_latest")
|
||
: Gets the window [`Id`](struct.Id.html "struct iced::window::Id") of the latest window.
|
||
|
||
[get\_maximized](fn.get_maximized.html "fn iced::window::get_maximized")
|
||
: Gets the maximized state of the window with the given [`Id`](struct.Id.html "struct iced::window::Id").
|
||
|
||
[get\_minimized](fn.get_minimized.html "fn iced::window::get_minimized")
|
||
: Gets the minimized state of the window with the given [`Id`](struct.Id.html "struct iced::window::Id").
|
||
|
||
[get\_mode](fn.get_mode.html "fn iced::window::get_mode")
|
||
: Gets the current [`Mode`](enum.Mode.html "enum iced::window::Mode") of the window.
|
||
|
||
[get\_oldest](fn.get_oldest.html "fn iced::window::get_oldest")
|
||
: Gets the window [`Id`](struct.Id.html "struct iced::window::Id") of the oldest window.
|
||
|
||
[get\_position](fn.get_position.html "fn iced::window::get_position")
|
||
: Gets the position in logical coordinates of the window with the given [`Id`](struct.Id.html "struct iced::window::Id").
|
||
|
||
[get\_raw\_id](fn.get_raw_id.html "fn iced::window::get_raw_id")
|
||
: Gets an identifier unique to the window, provided by the underlying windowing system. This is
|
||
not to be confused with [`Id`](struct.Id.html "struct iced::window::Id").
|
||
|
||
[get\_scale\_factor](fn.get_scale_factor.html "fn iced::window::get_scale_factor")
|
||
: Gets the scale factor of the window with the given [`Id`](struct.Id.html "struct iced::window::Id").
|
||
|
||
[get\_size](fn.get_size.html "fn iced::window::get_size")
|
||
: Get the window’s size in logical dimensions.
|
||
|
||
[maximize](fn.maximize.html "fn iced::window::maximize")
|
||
: Maximizes the window.
|
||
|
||
[minimize](fn.minimize.html "fn iced::window::minimize")
|
||
: Minimizes the window.
|
||
|
||
[move\_to](fn.move_to.html "fn iced::window::move_to")
|
||
: Moves the window to the given logical coordinates.
|
||
|
||
[open](fn.open.html "fn iced::window::open")
|
||
: Opens a new window with the given [`Settings`](struct.Settings.html "struct iced::window::Settings"); producing the [`Id`](struct.Id.html "struct iced::window::Id")
|
||
of the new window on completion.
|
||
|
||
[open\_events](fn.open_events.html "fn iced::window::open_events")
|
||
: Subscribes to all [`Event::Closed`](enum.Event.html#variant.Closed "variant iced::window::Event::Closed") occurrences in the running application.
|
||
|
||
[request\_user\_attention](fn.request_user_attention.html "fn iced::window::request_user_attention")
|
||
: Request user attention to the window. This has no effect if the application
|
||
is already focused. How requesting for user attention manifests is platform dependent,
|
||
see [`UserAttention`](enum.UserAttention.html "enum iced::window::UserAttention") for details.
|
||
|
||
[resize](fn.resize.html "fn iced::window::resize")
|
||
: Resizes the window to the given logical dimensions.
|
||
|
||
[resize\_events](fn.resize_events.html "fn iced::window::resize_events")
|
||
: Subscribes to all [`Event::Resized`](enum.Event.html#variant.Resized "variant iced::window::Event::Resized") occurrences in the running application.
|
||
|
||
[run\_with\_handle](fn.run_with_handle.html "fn iced::window::run_with_handle")
|
||
: Runs the given callback with the native window handle for the window with the given id.
|
||
|
||
[screenshot](fn.screenshot.html "fn iced::window::screenshot")
|
||
: Captures a [`Screenshot`](struct.Screenshot.html "struct iced::window::Screenshot") from the window.
|
||
|
||
[show\_system\_menu](fn.show_system_menu.html "fn iced::window::show_system_menu")
|
||
: Show the [system menu](https://en.wikipedia.org/wiki/Common_menus_in_Microsoft_Windows#System_menu) at cursor position.
|
||
|
||
[toggle\_decorations](fn.toggle_decorations.html "fn iced::window::toggle_decorations")
|
||
: Toggles the window decorations.
|
||
|
||
[toggle\_maximize](fn.toggle_maximize.html "fn iced::window::toggle_maximize")
|
||
: Toggles the window to maximized or back.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/keyboard/index.html](https://docs.rs/iced/0.13.1/iced/keyboard/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module keyboardCopy item path
|
||
|
||
[Source](../../src/iced/lib.rs.html#558)
|
||
|
||
Expand description
|
||
|
||
Listen and react to keyboard events.
|
||
|
||
## Modules[§](#modules)
|
||
|
||
[key](key/index.html "mod iced::keyboard::key")
|
||
: Identify keyboard keys.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Modifiers](struct.Modifiers.html "struct iced::keyboard::Modifiers")
|
||
: The current state of the keyboard modifiers.
|
||
|
||
## Enums[§](#enums)
|
||
|
||
[Event](enum.Event.html "enum iced::keyboard::Event")
|
||
: A keyboard event.
|
||
|
||
[Key](enum.Key.html "enum iced::keyboard::Key")
|
||
: A key on the keyboard.
|
||
|
||
[Location](enum.Location.html "enum iced::keyboard::Location")
|
||
: The location of a key on the keyboard.
|
||
|
||
## Functions[§](#functions)
|
||
|
||
[on\_key\_press](fn.on_key_press.html "fn iced::keyboard::on_key_press")
|
||
: Listens to keyboard key presses and calls the given function
|
||
to map them into actual messages.
|
||
|
||
[on\_key\_release](fn.on_key_release.html "fn iced::keyboard::on_key_release")
|
||
: Listens to keyboard key releases and calls the given function
|
||
to map them into actual messages.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/mouse/index.html](https://docs.rs/iced/0.13.1/iced/mouse/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module mouseCopy item path
|
||
|
||
[Source](../../src/iced/lib.rs.html#565)
|
||
|
||
Expand description
|
||
|
||
Listen and react to mouse events.
|
||
|
||
## Enums[§](#enums)
|
||
|
||
[Button](enum.Button.html "enum iced::mouse::Button")
|
||
: The button of a mouse.
|
||
|
||
[Cursor](enum.Cursor.html "enum iced::mouse::Cursor")
|
||
: The mouse cursor state.
|
||
|
||
[Event](enum.Event.html "enum iced::mouse::Event")
|
||
: A mouse event.
|
||
|
||
[Interaction](enum.Interaction.html "enum iced::mouse::Interaction")
|
||
: The interaction of a mouse cursor.
|
||
|
||
[ScrollDelta](enum.ScrollDelta.html "enum iced::mouse::ScrollDelta")
|
||
: A scroll movement.
|
||
|
||
|
||
---
|
||
|
||
## Source: [https://docs.rs/iced/0.13.1/iced/touch/index.html](https://docs.rs/iced/0.13.1/iced/touch/index.html)
|
||
|
||
[iced](../index.html)
|
||
|
||
# Module touchCopy item path
|
||
|
||
[Source](../../src/iced/lib.rs.html#597)
|
||
|
||
Expand description
|
||
|
||
Listen and react to touch events.
|
||
|
||
## Structs[§](#structs)
|
||
|
||
[Finger](struct.Finger.html "struct iced::touch::Finger")
|
||
: A unique identifier representing a finger on a touch interaction.
|
||
|
||
## Enums[§](#enums)
|
||
|
||
[Event](enum.Event.html "enum iced::touch::Event")
|
||
: A touch interaction.
|
||
|