pub enum Rank {
First,
Second,
Third,
Fourth,
Fifth,
Sixth,
Seventh,
Eighth,
}
Expand description
Describe a rank (row) on a chess board
Variants
First
Second
Third
Fourth
Fifth
Sixth
Seventh
Eighth
Implementations
Trait Implementations
sourceimpl PartialOrd<Rank> for Rank
impl PartialOrd<Rank> for Rank
sourcefn partial_cmp(&self, other: &Rank) -> Option<Ordering>
fn partial_cmp(&self, other: &Rank) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Rank
impl StructuralPartialEq for Rank
Auto Trait Implementations
impl RefUnwindSafe for Rank
impl Send for Rank
impl Sync for Rank
impl Unpin for Rank
impl UnwindSafe for Rank
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more