Lines Matching refs:is_odd
245 fn is_odd(&self) -> bool; in is_odd() method
557 fn is_odd(&self) -> bool {
777 assert_eq!((-4 as $T).is_odd(), false);
778 assert_eq!((-3 as $T).is_odd(), true);
779 assert_eq!((-2 as $T).is_odd(), false);
780 assert_eq!((-1 as $T).is_odd(), true);
781 assert_eq!((0 as $T).is_odd(), false);
782 assert_eq!((1 as $T).is_odd(), true);
783 assert_eq!((2 as $T).is_odd(), false);
784 assert_eq!((3 as $T).is_odd(), true);
785 assert_eq!((4 as $T).is_odd(), false);
898 fn is_odd(&self) -> bool {
998 assert_eq!((0 as $T).is_odd(), false);
999 assert_eq!((1 as $T).is_odd(), true);
1000 assert_eq!((2 as $T).is_odd(), false);
1001 assert_eq!((3 as $T).is_odd(), true);
1002 assert_eq!((4 as $T).is_odd(), false);