Debian Codegraph @

third_party/rust/derive_more/tests/mul.rs

raw
1 #![cfg_attr(not(feature = "std"), no_std)]
2 #![allow(dead_code)]
3
4 use derive_more::Mul;
5
6 #[derive(Mul)]
7 struct MyInt(i32);
8
9 #[derive(Mul)]
10 struct MyInts(i32, i32);
11
12 #[derive(Mul)]
13 struct Point1D {
14 x: i32,
15 }
16
17 #[derive(Mul)]
18 struct Point2D {
19 x: i32,
20 y: i32,
21 }