Write missing docs in iced_graphics and iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2023-06-29 07:55:52 +02:00
parent fa5650cfd1
commit 6921564c9f
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
8 changed files with 17 additions and 5 deletions

View file

@ -24,8 +24,8 @@
html_logo_url = "https://raw.githubusercontent.com/iced-rs/iced/9ab6923e943f784985e9ef9ca28b10278297225d/docs/logo.svg"
)]
#![deny(
//missing_debug_implementations,
//missing_docs,
missing_debug_implementations,
missing_docs,
unsafe_code,
unused_results,
clippy::extra_unused_lifetimes,

View file

@ -1,10 +1,14 @@
//! Draw using different graphical primitives.
use crate::core::Rectangle;
use crate::graphics::{Damage, Mesh};
/// The graphical primitives supported by `iced_wgpu`.
pub type Primitive = crate::graphics::Primitive<Custom>;
/// The custom primitives supported by `iced_wgpu`.
#[derive(Debug, Clone, PartialEq)]
pub enum Custom {
/// A mesh primitive.
Mesh(Mesh),
}