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,
12 clippy::missing_panics_doc
16 use std::rc::{self, Rc};
17 use std::sync::{self, Arc};
23 // *****************************************
24 // trait method list part 1, should lint all
25 // *****************************************
26 pub fn add(self, other: T) -> T {
30 pub fn as_mut(&mut self) -> &mut T {
34 pub fn as_ref(&self) -> &T {
38 pub fn bitand(self, rhs: T) -> T {
42 pub fn bitor(self, rhs: Self) -> Self {
46 pub fn bitxor(self, rhs: Self) -> Self {
50 pub fn borrow(&self) -> &str {
54 pub fn borrow_mut(&mut self) -> &mut str {
58 pub fn clone(&self) -> Self {
62 pub fn cmp(&self, other: &Self) -> Self {
66 pub fn default() -> Self {
70 pub fn deref(&self) -> &Self {
74 pub fn deref_mut(&mut self) -> &mut Self {
78 pub fn div(self, rhs: Self) -> Self {
82 pub fn drop(&mut self) {