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 1, should lint all
24 // *****************************************
25 pub fn add(self, other: T) -> T {
29 pub fn as_mut(&mut self) -> &mut T {
33 pub fn as_ref(&self) -> &T {
37 pub fn bitand(self, rhs: T) -> T {
41 pub fn bitor(self, rhs: Self) -> Self {
45 pub fn bitxor(self, rhs: Self) -> Self {
49 pub fn borrow(&self) -> &str {
53 pub fn borrow_mut(&mut self) -> &mut str {
57 pub fn clone(&self) -> Self {
61 pub fn cmp(&self, other: &Self) -> Self {
65 pub fn default() -> Self {
69 pub fn deref(&self) -> &Self {
73 pub fn deref_mut(&mut self) -> &mut Self {
77 pub fn div(self, rhs: Self) -> Self {
81 pub fn drop(&mut self) {