Remove missing_debug_implementations lint
This commit is contained in:
parent
89b7585465
commit
5796ba272e
70 changed files with 0 additions and 90 deletions
|
|
@ -233,7 +233,6 @@ winit = { git = "https://github.com/iced-rs/winit.git", rev = "11414b6aa45699f03
|
||||||
|
|
||||||
[workspace.lints.rust]
|
[workspace.lints.rust]
|
||||||
rust_2018_idioms = { level = "deny", priority = -1 }
|
rust_2018_idioms = { level = "deny", priority = -1 }
|
||||||
missing_debug_implementations = "deny"
|
|
||||||
missing_docs = "deny"
|
missing_docs = "deny"
|
||||||
unsafe_code = "deny"
|
unsafe_code = "deny"
|
||||||
unused_results = "deny"
|
unused_results = "deny"
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,6 @@ use std::borrow::Borrow;
|
||||||
/// to turn it into an [`Element`].
|
/// to turn it into an [`Element`].
|
||||||
///
|
///
|
||||||
/// [built-in widget]: crate::widget
|
/// [built-in widget]: crate::widget
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Element<'a, Message, Theme, Renderer> {
|
pub struct Element<'a, Message, Theme, Renderer> {
|
||||||
widget: Box<dyn Widget<Message, Theme, Renderer> + 'a>,
|
widget: Box<dyn Widget<Message, Theme, Renderer> + 'a>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
/// The hasher used to compare layouts.
|
|
||||||
#[allow(missing_debug_implementations)] // Doesn't really make sense to have debug on the hasher state anyways.
|
|
||||||
#[derive(Default)]
|
|
||||||
pub struct Hasher(rustc_hash::FxHasher);
|
|
||||||
|
|
||||||
impl core::hash::Hasher for Hasher {
|
|
||||||
fn write(&mut self, bytes: &[u8]) {
|
|
||||||
self.0.write(bytes);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn finish(&self) -> u64 {
|
|
||||||
self.0.finish()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -7,7 +7,6 @@ use crate::widget;
|
||||||
use crate::{Clipboard, Event, Layout, Shell, Size};
|
use crate::{Clipboard, Event, Layout, Shell, Size};
|
||||||
|
|
||||||
/// A generic [`Overlay`].
|
/// A generic [`Overlay`].
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Element<'a, Message, Theme, Renderer> {
|
pub struct Element<'a, Message, Theme, Renderer> {
|
||||||
overlay: Box<dyn Overlay<Message, Theme, Renderer> + 'a>,
|
overlay: Box<dyn Overlay<Message, Theme, Renderer> + 'a>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ use crate::{Clipboard, Event, Layout, Overlay, Shell, Size};
|
||||||
|
|
||||||
/// An [`Overlay`] container that displays multiple overlay [`overlay::Element`]
|
/// An [`Overlay`] container that displays multiple overlay [`overlay::Element`]
|
||||||
/// children.
|
/// children.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Group<'a, Message, Theme, Renderer> {
|
pub struct Group<'a, Message, Theme, Renderer> {
|
||||||
children: Vec<overlay::Element<'a, Message, Theme, Renderer>>,
|
children: Vec<overlay::Element<'a, Message, Theme, Renderer>>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ use crate::widget;
|
||||||
use crate::{Clipboard, Event, Layout, Shell, Size};
|
use crate::{Clipboard, Event, Layout, Shell, Size};
|
||||||
|
|
||||||
/// An overlay container that displays nested overlays
|
/// An overlay container that displays nested overlays
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Nested<'a, Message, Theme, Renderer> {
|
pub struct Nested<'a, Message, Theme, Renderer> {
|
||||||
overlay: overlay::Element<'a, Message, Theme, Renderer>,
|
overlay: overlay::Element<'a, Message, Theme, Renderer>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,6 @@ where
|
||||||
A: 'static,
|
A: 'static,
|
||||||
B: 'static,
|
B: 'static,
|
||||||
{
|
{
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
struct Map<O, A, B> {
|
struct Map<O, A, B> {
|
||||||
operation: O,
|
operation: O,
|
||||||
f: Arc<dyn Fn(A) -> B + Send + Sync>,
|
f: Arc<dyn Fn(A) -> B + Send + Sync>,
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,6 @@ pub use text::{Alignment, LineHeight, Shaping, Wrapping};
|
||||||
/// .into()
|
/// .into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Text<'a, Theme, Renderer>
|
pub struct Text<'a, Theme, Renderer>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The state of the devtools.
|
/// The state of the devtools.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct DevTools<P>
|
pub struct DevTools<P>
|
||||||
where
|
where
|
||||||
P: Program,
|
P: Program,
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ const MIN_ANGLE: Radians = Radians(PI / 8.0);
|
||||||
const WRAP_ANGLE: Radians = Radians(2.0 * PI - PI / 4.0);
|
const WRAP_ANGLE: Radians = Radians(2.0 * PI - PI / 4.0);
|
||||||
const BASE_ROTATION_SPEED: u32 = u32::MAX / 80;
|
const BASE_ROTATION_SPEED: u32 = u32::MAX / 80;
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Circular<'a, Theme>
|
pub struct Circular<'a, Theme>
|
||||||
where
|
where
|
||||||
Theme: StyleSheet,
|
Theme: StyleSheet,
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,6 @@ use super::easing::{self, Easing};
|
||||||
|
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Linear<'a, Theme>
|
pub struct Linear<'a, Theme>
|
||||||
where
|
where
|
||||||
Theme: StyleSheet,
|
Theme: StyleSheet,
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ use crate::core::{Point, Radians, Rectangle, Size, Vector};
|
||||||
use crate::geometry::{self, Fill, Image, Path, Stroke, Svg, Text};
|
use crate::geometry::{self, Fill, Image, Path, Stroke, Svg, Text};
|
||||||
|
|
||||||
/// The region of a surface that can be used to draw geometry.
|
/// The region of a surface that can be used to draw geometry.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Frame<Renderer>
|
pub struct Frame<Renderer>
|
||||||
where
|
where
|
||||||
Renderer: geometry::Renderer,
|
Renderer: geometry::Renderer,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ use lyon_path::math;
|
||||||
/// A [`Path`] builder.
|
/// A [`Path`] builder.
|
||||||
///
|
///
|
||||||
/// Once a [`Path`] is built, it can no longer be mutated.
|
/// Once a [`Path`] is built, it can no longer be mutated.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Builder {
|
pub struct Builder {
|
||||||
raw: builder::WithSvg<lyon_path::path::BuilderImpl>,
|
raw: builder::WithSvg<lyon_path::path::BuilderImpl>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,6 @@ pub fn font_system() -> &'static RwLock<FontSystem> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A set of system fonts.
|
/// A set of system fonts.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct FontSystem {
|
pub struct FontSystem {
|
||||||
raw: cosmic_text::FontSystem,
|
raw: cosmic_text::FontSystem,
|
||||||
loaded_fonts: HashSet<usize>,
|
loaded_fonts: HashSet<usize>,
|
||||||
|
|
|
||||||
|
|
@ -663,7 +663,6 @@ impl<T> Renderer for T where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A particular instance of a running [`Program`].
|
/// A particular instance of a running [`Program`].
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Instance<P: Program> {
|
pub struct Instance<P: Program> {
|
||||||
program: P,
|
program: P,
|
||||||
state: P::State,
|
state: P::State,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ use crate::core::{
|
||||||
/// existing graphical application.
|
/// existing graphical application.
|
||||||
///
|
///
|
||||||
/// [`integration`]: https://github.com/iced-rs/iced/tree/0.13/examples/integration
|
/// [`integration`]: https://github.com/iced-rs/iced/tree/0.13/examples/integration
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct UserInterface<'a, Message, Theme, Renderer> {
|
pub struct UserInterface<'a, Message, Theme, Renderer> {
|
||||||
root: Element<'a, Message, Theme, Renderer>,
|
root: Element<'a, Message, Theme, Renderer>,
|
||||||
base: layout::Node,
|
base: layout::Node,
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ pub use raw_window_handle;
|
||||||
use raw_window_handle::WindowHandle;
|
use raw_window_handle::WindowHandle;
|
||||||
|
|
||||||
/// An operation to be performed on some window.
|
/// An operation to be performed on some window.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub enum Action {
|
pub enum Action {
|
||||||
/// Opens a new window with some [`Settings`].
|
/// Opens a new window with some [`Settings`].
|
||||||
Open(Id, Settings, oneshot::Sender<Id>),
|
Open(Id, Settings, oneshot::Sender<Id>),
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,6 @@ use crate::core::{Rectangle, Vector};
|
||||||
use std::any::Any;
|
use std::any::Any;
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub enum Target<'a> {
|
pub enum Target<'a> {
|
||||||
Container {
|
Container {
|
||||||
id: Option<&'a Id>,
|
id: Option<&'a Id>,
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,6 @@ use crate::{Instruction, Selector};
|
||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Emulator<P: Program> {
|
pub struct Emulator<P: Program> {
|
||||||
state: P::State,
|
state: P::State,
|
||||||
runtime: Runtime<P::Executor, mpsc::Sender<Event<P>>, Event<P>>,
|
runtime: Runtime<P::Executor, mpsc::Sender<Event<P>>, Event<P>>,
|
||||||
|
|
@ -35,14 +34,12 @@ pub struct Emulator<P: Program> {
|
||||||
pending_tasks: usize,
|
pending_tasks: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub enum Event<P: Program> {
|
pub enum Event<P: Program> {
|
||||||
Action(Action<P>),
|
Action(Action<P>),
|
||||||
Failed(Instruction),
|
Failed(Instruction),
|
||||||
Ready,
|
Ready,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub enum Action<P: Program> {
|
pub enum Action<P: Program> {
|
||||||
Runtime(runtime::Action<P::Message>),
|
Runtime(runtime::Action<P::Message>),
|
||||||
CountDown,
|
CountDown,
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ use std::path::{Path, PathBuf};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
/// A user interface that can be interacted with and inspected programmatically.
|
/// A user interface that can be interacted with and inspected programmatically.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Simulator<
|
pub struct Simulator<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,6 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Tester<P: Program> {
|
pub struct Tester<P: Program> {
|
||||||
viewport: Size,
|
viewport: Size,
|
||||||
mode: emulator::Mode,
|
mode: emulator::Mode,
|
||||||
|
|
@ -144,7 +143,6 @@ pub enum Message {
|
||||||
Confirm,
|
Confirm,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub enum Tick<P: Program> {
|
pub enum Tick<P: Program> {
|
||||||
Tester(Message),
|
Tester(Message),
|
||||||
Program(P::Message),
|
Program(P::Message),
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,6 @@ pub fn recorder<'a, Message, Renderer>(
|
||||||
Recorder::new(content)
|
Recorder::new(content)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Recorder<'a, Message, Renderer> {
|
pub struct Recorder<'a, Message, Renderer> {
|
||||||
content: Element<'a, Message, Theme, Renderer>,
|
content: Element<'a, Message, Theme, Renderer>,
|
||||||
on_record: Option<Box<dyn Fn(Interaction) -> Message + 'a>>,
|
on_record: Option<Box<dyn Fn(Interaction) -> Message + 'a>>,
|
||||||
|
|
|
||||||
|
|
@ -8,13 +8,11 @@ use crate::{Layer, Renderer, Settings};
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
use std::num::NonZeroU32;
|
use std::num::NonZeroU32;
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Compositor {
|
pub struct Compositor {
|
||||||
context: softbuffer::Context<Box<dyn compositor::Window>>,
|
context: softbuffer::Context<Box<dyn compositor::Window>>,
|
||||||
settings: Settings,
|
settings: Settings,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Surface {
|
pub struct Surface {
|
||||||
window: softbuffer::Surface<
|
window: softbuffer::Surface<
|
||||||
Box<dyn compositor::Window>,
|
Box<dyn compositor::Window>,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ use crate::triangle;
|
||||||
use std::sync::{Arc, RwLock};
|
use std::sync::{Arc, RwLock};
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Engine {
|
pub struct Engine {
|
||||||
pub(crate) device: wgpu::Device,
|
pub(crate) device: wgpu::Device,
|
||||||
pub(crate) queue: wgpu::Queue,
|
pub(crate) queue: wgpu::Queue,
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,6 @@ impl Cached for Geometry {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A frame for drawing some geometry.
|
/// A frame for drawing some geometry.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Frame {
|
pub struct Frame {
|
||||||
clip_bounds: Rectangle,
|
clip_bounds: Rectangle,
|
||||||
buffers: BufferStack,
|
buffers: BufferStack,
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ use crate::graphics::text::{Editor, Paragraph};
|
||||||
///
|
///
|
||||||
/// [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
/// [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
|
||||||
/// [`iced`]: https://github.com/iced-rs/iced
|
/// [`iced`]: https://github.com/iced-rs/iced
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Renderer {
|
pub struct Renderer {
|
||||||
engine: Engine,
|
engine: Engine,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,6 @@ pub trait Renderer: core::Renderer {
|
||||||
|
|
||||||
/// Stores custom, user-provided types.
|
/// Stores custom, user-provided types.
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Storage {
|
pub struct Storage {
|
||||||
pipelines: FxHashMap<TypeId, Box<dyn AnyConcurrent>>,
|
pipelines: FxHashMap<TypeId, Box<dyn AnyConcurrent>>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,6 @@ impl Viewport {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Pipeline {
|
pub struct Pipeline {
|
||||||
format: wgpu::TextureFormat,
|
format: wgpu::TextureFormat,
|
||||||
cache: cryoglyph::Cache,
|
cache: cryoglyph::Cache,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ use crate::settings::{self, Settings};
|
||||||
use crate::{Engine, Renderer};
|
use crate::{Engine, Renderer};
|
||||||
|
|
||||||
/// A window graphics backend for iced powered by `wgpu`.
|
/// A window graphics backend for iced powered by `wgpu`.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Compositor {
|
pub struct Compositor {
|
||||||
instance: wgpu::Instance,
|
instance: wgpu::Instance,
|
||||||
adapter: wgpu::Adapter,
|
adapter: wgpu::Adapter,
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,6 @@ use crate::core::{
|
||||||
/// button("I am disabled!").into()
|
/// button("I am disabled!").into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Button<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
pub struct Button<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
||||||
where
|
where
|
||||||
Renderer: crate::core::Renderer,
|
Renderer: crate::core::Renderer,
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,6 @@ use crate::core::{
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
/// 
|
/// 
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Checkbox<
|
pub struct Checkbox<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ use crate::core::{
|
||||||
/// ].into()
|
/// ].into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Column<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
pub struct Column<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
||||||
{
|
{
|
||||||
spacing: f32,
|
spacing: f32,
|
||||||
|
|
|
||||||
|
|
@ -130,7 +130,6 @@ use std::fmt::Display;
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct ComboBox<
|
pub struct ComboBox<
|
||||||
'a,
|
'a,
|
||||||
T,
|
T,
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@ use crate::core::{
|
||||||
/// .into()
|
/// .into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Container<
|
pub struct Container<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ use crate::core::{
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A widget that can make its contents float over other widgets.
|
/// A widget that can make its contents float over other widgets.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Float<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
pub struct Float<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ use crate::core::{
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A container that distributes its contents on a responsive grid.
|
/// A container that distributes its contents on a responsive grid.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Grid<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> {
|
pub struct Grid<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> {
|
||||||
spacing: f32,
|
spacing: f32,
|
||||||
columns: Constraint,
|
columns: Constraint,
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,6 @@ pub fn viewer<Handle>(handle: Handle) -> Viewer<Handle> {
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
/// <img src="https://github.com/iced-rs/iced/blob/9712b319bb7a32848001b96bd84977430f14b623/examples/resources/ferris.png?raw=true" width="300">
|
/// <img src="https://github.com/iced-rs/iced/blob/9712b319bb7a32848001b96bd84977430f14b623/examples/resources/ferris.png?raw=true" width="300">
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Image<Handle = image::Handle> {
|
pub struct Image<Handle = image::Handle> {
|
||||||
handle: Handle,
|
handle: Handle,
|
||||||
width: Length,
|
width: Length,
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,6 @@ use crate::core::{
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A frame that displays an image with the ability to zoom in/out and pan.
|
/// A frame that displays an image with the ability to zoom in/out and pan.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Viewer<Handle> {
|
pub struct Viewer<Handle> {
|
||||||
padding: f32,
|
padding: f32,
|
||||||
width: Length,
|
width: Length,
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@ use crate::core::{
|
||||||
/// })).into()
|
/// })).into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Column<
|
pub struct Column<
|
||||||
'a,
|
'a,
|
||||||
Key,
|
Key,
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ use std::rc::Rc;
|
||||||
|
|
||||||
/// A widget that only rebuilds its contents when necessary.
|
/// A widget that only rebuilds its contents when necessary.
|
||||||
#[cfg(feature = "lazy")]
|
#[cfg(feature = "lazy")]
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Lazy<'a, Message, Theme, Renderer, Dependency, View> {
|
pub struct Lazy<'a, Message, Theme, Renderer, Dependency, View> {
|
||||||
dependency: Dependency,
|
dependency: Dependency,
|
||||||
view: Box<dyn Fn(&Dependency) -> View + 'a>,
|
view: Box<dyn Fn(&Dependency) -> View + 'a>,
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@ use crate::core::{
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Emit messages on mouse events.
|
/// Emit messages on mouse events.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct MouseArea<
|
pub struct MouseArea<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ use crate::core::{Element, Shell, Widget};
|
||||||
use crate::scrollable::{self, Scrollable};
|
use crate::scrollable::{self, Scrollable};
|
||||||
|
|
||||||
/// A list of selectable options.
|
/// A list of selectable options.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Menu<
|
pub struct Menu<
|
||||||
'a,
|
'a,
|
||||||
'b,
|
'b,
|
||||||
|
|
|
||||||
|
|
@ -147,7 +147,6 @@ const THICKNESS_RATIO: f32 = 25.0;
|
||||||
/// .into()
|
/// .into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct PaneGrid<
|
pub struct PaneGrid<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ use crate::pane_grid::{Draggable, TitleBar};
|
||||||
/// The content of a [`Pane`].
|
/// The content of a [`Pane`].
|
||||||
///
|
///
|
||||||
/// [`Pane`]: super::Pane
|
/// [`Pane`]: super::Pane
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Content<
|
pub struct Content<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ use crate::core::{self, Element};
|
||||||
/// The controls of a [`Pane`].
|
/// The controls of a [`Pane`].
|
||||||
///
|
///
|
||||||
/// [`Pane`]: super::Pane
|
/// [`Pane`]: super::Pane
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Controls<
|
pub struct Controls<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ use crate::pane_grid::controls::Controls;
|
||||||
/// The title bar of a [`Pane`].
|
/// The title bar of a [`Pane`].
|
||||||
///
|
///
|
||||||
/// [`Pane`]: super::Pane
|
/// [`Pane`]: super::Pane
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct TitleBar<
|
pub struct TitleBar<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,6 @@ use std::f32;
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct PickList<
|
pub struct PickList<
|
||||||
'a,
|
'a,
|
||||||
T,
|
T,
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,6 @@ use crate::core::{
|
||||||
/// .into()
|
/// .into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Pin<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
pub struct Pin<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
||||||
where
|
where
|
||||||
Renderer: core::Renderer,
|
Renderer: core::Renderer,
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,6 @@ use std::ops::RangeInclusive;
|
||||||
/// progress_bar(0.0..=100.0, state.progress).into()
|
/// progress_bar(0.0..=100.0, state.progress).into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct ProgressBar<'a, Theme = crate::Theme>
|
pub struct ProgressBar<'a, Theme = crate::Theme>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,6 @@ const QUIET_ZONE: usize = 2;
|
||||||
/// qr_code(&state.data).into()
|
/// qr_code(&state.data).into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct QRCode<'a, Theme = crate::Theme>
|
pub struct QRCode<'a, Theme = crate::Theme>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -129,7 +129,6 @@ use crate::core::{
|
||||||
/// column![a, b, c, all].into()
|
/// column![a, b, c, all].into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Radio<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
pub struct Radio<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ use crate::space_x;
|
||||||
///
|
///
|
||||||
/// A [`Responsive`] widget will always try to fill all the available space of
|
/// A [`Responsive`] widget will always try to fill all the available space of
|
||||||
/// its parent.
|
/// its parent.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Responsive<
|
pub struct Responsive<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,6 @@ use crate::core::{
|
||||||
/// ].into()
|
/// ].into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Row<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> {
|
pub struct Row<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer> {
|
||||||
spacing: f32,
|
spacing: f32,
|
||||||
padding: Padding,
|
padding: Padding,
|
||||||
|
|
@ -361,7 +360,6 @@ where
|
||||||
/// obtain a [`Row`] that wraps its contents.
|
/// obtain a [`Row`] that wraps its contents.
|
||||||
///
|
///
|
||||||
/// The original alignment of the [`Row`] is preserved per row wrapped.
|
/// The original alignment of the [`Row`] is preserved per row wrapped.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Wrapping<
|
pub struct Wrapping<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ use crate::core::{
|
||||||
/// rule(2).into()
|
/// rule(2).into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Rule<'a, Theme = crate::Theme>
|
pub struct Rule<'a, Theme = crate::Theme>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,6 @@ pub use operation::scrollable::{AbsoluteOffset, RelativeOffset};
|
||||||
/// ]).into()
|
/// ]).into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Scrollable<
|
pub struct Scrollable<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ use crate::core::{
|
||||||
/// A widget that can generate messages when its content pops in and out of view.
|
/// A widget that can generate messages when its content pops in and out of view.
|
||||||
///
|
///
|
||||||
/// It can even notify you with anticipation at a given distance!
|
/// It can even notify you with anticipation at a given distance!
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Sensor<
|
pub struct Sensor<
|
||||||
'a,
|
'a,
|
||||||
Key,
|
Key,
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ pub use primitive::{Primitive, Storage};
|
||||||
///
|
///
|
||||||
/// Must be initialized with a [`Program`], which describes the internal widget state & how
|
/// Must be initialized with a [`Program`], which describes the internal widget state & how
|
||||||
/// its [`Program::Primitive`]s are drawn.
|
/// its [`Program::Primitive`]s are drawn.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Shader<Message, P: Program<Message>> {
|
pub struct Shader<Message, P: Program<Message>> {
|
||||||
width: Length,
|
width: Length,
|
||||||
height: Length,
|
height: Length,
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,6 @@ use std::ops::RangeInclusive;
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Slider<'a, T, Message, Theme = crate::Theme>
|
pub struct Slider<'a, T, Message, Theme = crate::Theme>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ use crate::core::{
|
||||||
///
|
///
|
||||||
/// Keep in mind that too much layering will normally produce bad UX as well as
|
/// Keep in mind that too much layering will normally produce bad UX as well as
|
||||||
/// introduce certain rendering overhead. Use this widget sparingly!
|
/// introduce certain rendering overhead. Use this widget sparingly!
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Stack<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
pub struct Stack<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
||||||
{
|
{
|
||||||
width: Length,
|
width: Length,
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,6 @@ pub use crate::core::svg::Handle;
|
||||||
/// svg("tiger.svg").into()
|
/// svg("tiger.svg").into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Svg<'a, Theme = crate::Theme>
|
pub struct Svg<'a, Theme = crate::Theme>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A grid-like visual representation of data distributed in columns and rows.
|
/// A grid-like visual representation of data distributed in columns and rows.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Table<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
pub struct Table<'a, Message, Theme = crate::Theme, Renderer = crate::Renderer>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
@ -630,7 +629,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A vertical visualization of some data with a header.
|
/// A vertical visualization of some data with a header.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Column<
|
pub struct Column<
|
||||||
'a,
|
'a,
|
||||||
'b,
|
'b,
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,6 @@ use crate::core::{
|
||||||
};
|
};
|
||||||
|
|
||||||
/// A bunch of [`Rich`] text.
|
/// A bunch of [`Rich`] text.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Rich<
|
pub struct Rich<
|
||||||
'a,
|
'a,
|
||||||
Link,
|
Link,
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,6 @@ pub use text::editor::{Action, Edit, Line, LineEnding, Motion};
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct TextEditor<
|
pub struct TextEditor<
|
||||||
'a,
|
'a,
|
||||||
Highlighter,
|
Highlighter,
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,6 @@ use crate::core::{
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct TextInput<
|
pub struct TextInput<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ use crate::core::{
|
||||||
///
|
///
|
||||||
/// This widget can be useful to leverage multiple `Theme`
|
/// This widget can be useful to leverage multiple `Theme`
|
||||||
/// types in an application.
|
/// types in an application.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Themer<'a, Message, Theme, Renderer = crate::Renderer>
|
pub struct Themer<'a, Message, Theme, Renderer = crate::Renderer>
|
||||||
where
|
where
|
||||||
Renderer: crate::core::Renderer,
|
Renderer: crate::core::Renderer,
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,6 @@ use crate::core::{
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Toggler<
|
pub struct Toggler<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,6 @@ use crate::core::{
|
||||||
/// ).into()
|
/// ).into()
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Tooltip<
|
pub struct Tooltip<
|
||||||
'a,
|
'a,
|
||||||
Message,
|
Message,
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,6 @@ use crate::core::{
|
||||||
/// }
|
/// }
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct VerticalSlider<'a, T, Message, Theme = crate::Theme>
|
pub struct VerticalSlider<'a, T, Message, Theme = crate::Theme>
|
||||||
where
|
where
|
||||||
Theme: Catalog,
|
Theme: Catalog,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ use winit::window::{Window, WindowId};
|
||||||
|
|
||||||
/// A buffer for short-term storage and transfer within and between
|
/// A buffer for short-term storage and transfer within and between
|
||||||
/// applications.
|
/// applications.
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Clipboard {
|
pub struct Clipboard {
|
||||||
state: State,
|
state: State,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ use winit::monitor::MonitorHandle;
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct WindowManager<P, C>
|
pub struct WindowManager<P, C>
|
||||||
where
|
where
|
||||||
P: Program,
|
P: Program,
|
||||||
|
|
@ -157,7 +156,6 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(missing_debug_implementations)]
|
|
||||||
pub struct Window<P, C>
|
pub struct Window<P, C>
|
||||||
where
|
where
|
||||||
P: Program,
|
P: Program,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue