1#![doc(
10 html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
11)]
12pub mod alignment;
13pub mod animation;
14pub mod backend;
15pub mod border;
16pub mod clipboard;
17pub mod color;
18pub mod event;
19pub mod font;
20pub mod gradient;
21pub mod image;
22pub mod input_method;
23pub mod keyboard;
24pub mod layout;
25pub mod length;
26pub mod mouse;
27pub mod overlay;
28pub mod padding;
29pub mod renderer;
30pub mod shell;
31pub mod svg;
32pub mod text;
33pub mod theme;
34pub mod time;
35pub mod touch;
36pub mod widget;
37pub mod window;
38
39mod angle;
40mod background;
41mod code;
42mod content_fit;
43mod element;
44mod pixels;
45mod point;
46mod rectangle;
47mod rotation;
48mod settings;
49mod shadow;
50mod size;
51mod transformation;
52mod vector;
53
54pub use alignment::Alignment;
55pub use angle::{Degrees, Radians};
56pub use animation::Animation;
57pub use backend::Backend;
58pub use background::Background;
59pub use border::Border;
60pub use clipboard::Clipboard;
61pub use code::Code;
62pub use color::Color;
63pub use content_fit::ContentFit;
64pub use element::Element;
65pub use event::Event;
66pub use font::Font;
67pub use gradient::Gradient;
68pub use image::Image;
69pub use input_method::InputMethod;
70pub use layout::Layout;
71pub use length::Length;
72pub use overlay::Overlay;
73pub use padding::Padding;
74pub use pixels::Pixels;
75pub use point::Point;
76pub use rectangle::Rectangle;
77pub use renderer::Renderer;
78pub use rotation::Rotation;
79pub use settings::Settings;
80pub use shadow::Shadow;
81pub use shell::Shell;
82pub use size::Size;
83pub use svg::Svg;
84pub use text::Text;
85pub use theme::Theme;
86pub use transformation::Transformation;
87pub use vector::Vector;
88pub use widget::Widget;
89pub use window::Window;
90
91pub use bytes::Bytes;
92pub use smol_str::SmolStr;
93pub use std::convert::Infallible as Never;
94
95pub fn never<T>(never: Never) -> T {
101 match never {}
102}
103
104pub trait Function<A, B, O> {
109 fn with(self, prefix: A) -> impl Fn(B) -> O;
148}
149
150impl<F, A, B, O> Function<A, B, O> for F
151where
152 F: Fn(A, B) -> O,
153 Self: Sized,
154 A: Clone,
155{
156 fn with(self, prefix: A) -> impl Fn(B) -> O {
157 move |result| self(prefix.clone(), result)
158 }
159}