Searched refs:Color (Results 1 – 1 of 1) sorted by relevance
28 enum Color { enum35 color: Color,95 color: Color::Black, in new()106 fn set_color(&mut self, color: Color) { in set_color() argument117 self.set_color(Color::Red); in set_red_color()122 self.set_color(Color::Black); in set_black_color()126 fn get_color(&self) -> Color { in get_color() argument128 return Color::Black; in get_color()138 unsafe { (*self.0).color == Color::Red } in is_red_color()146 unsafe { (*self.0).color == Color::Black } in is_black_color()[all …]