2 #![warn(clippy::wrong_self_convention)]
3 #![warn(clippy::wrong_pub_self_convention)]
11 fn to_thing(&self) -> Thing;
15 // don't trigger, e.g. `ToString` from `std` requires `&self`
16 fn to_thing(&self) -> Thing {
22 fn to_u64(self) -> u64;
27 impl ToU64 for FooNoCopy {
28 fn to_u64(self) -> u64 {
36 fn from_usize(x: usize) -> Self;
40 fn from_usize(x: usize) -> Self {
50 // don't trigger (`s` is not `self`)
51 pub fn from_be(s: Self) -> Self {
56 pub fn from_be_self(self) -> Self {
57 S(i32::from_be(self.0))
62 // don't trigger (`s` is not `self`)
63 fn from_be(s: Self) -> Self;
65 fn from_be_self(self) -> Self;