3 #![warn(clippy::all, clippy::pedantic)]
5 clippy::missing_errors_doc,
6 clippy::needless_pass_by_value,
7 clippy::must_use_candidate,
9 clippy::needless_lifetimes,
10 clippy::missing_safety_doc,
11 clippy::wrong_self_convention
15 use std::rc::{self, Rc};
16 use std::sync::{self, Arc};
22 // *****************************************
23 // trait method list part 2, should lint all
24 // *****************************************
26 pub fn eq(&self, other: &Self) -> bool {
30 pub fn from_iter<T>(iter: T) -> Self {
34 pub fn from_str(s: &str) -> Result<Self, Self> {
38 pub fn hash(&self, state: &mut T) {
42 pub fn index(&self, index: usize) -> &Self {
46 pub fn index_mut(&mut self, index: usize) -> &mut Self {
50 pub fn into_iter(self) -> Self {
54 pub fn mul(self, rhs: Self) -> Self {
58 pub fn neg(self) -> Self {
62 pub fn next(&mut self) -> Option<Self> {
66 pub fn not(self) -> Self {
70 pub fn rem(self, rhs: Self) -> Self {
74 pub fn shl(self, rhs: Self) -> Self {
78 pub fn shr(self, rhs: Self) -> Self {
82 pub fn sub(self, rhs: Self) -> Self {