Debian Codegraph @

debian/missing-sources/derive_more/examples/deny_missing_docs.rs

raw
1 //! Some docs
2
3 #![deny(missing_docs)]
4 #![allow(dead_code)] // for illustration purposes
5
6 use derive_more::{
7 Add, AddAssign, Constructor, Deref, DerefMut, Display, From, FromStr, Index,
8 IndexMut, Into, IsVariant, Mul, MulAssign, Not, TryInto,
9 };
10
11 fn main() {}
12
13 /// Some docs
14 #[derive(
15 Add,
16 AddAssign,
17 Constructor,
18 Display,
19 From,
20 FromStr,
21 Into,
22 Mul,
23 MulAssign,
24 Not
25 )]
26 pub struct MyInt(i32);
27
28 /// Some docs
29 #[derive(Deref, DerefMut)]
30 pub struct MyBoxedInt(Box<i32>);
31
32 /// Some docs
33 #[derive(Index, IndexMut)]
34 pub struct MyVec(Vec<i32>);
35
36 /// Some docs
37 #[derive(Clone, Copy, TryInto)]
38 #[derive(IsVariant)]
39 enum MixedInts {
40 SmallInt(i32),
41 NamedBigInt { int: i64 },
42 }