#[repr(u8)]pub enum Port {
P1 = 0,
P2 = 1,
P3 = 2,
P4 = 3,
}
Expand description
A slot that can be occupied by a player.
Variants§
Implementations§
Trait Implementations§
source§impl Ord for Port
impl Ord for Port
source§impl PartialEq for Port
impl PartialEq for Port
source§impl PartialOrd for Port
impl PartialOrd for Port
1.0.0 · source§fn 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 moresource§impl TryFrom<u8> for Port
impl TryFrom<u8> for Port
§type Error = TryFromPrimitiveError<Port>
type Error = TryFromPrimitiveError<Port>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Port
impl TryFromPrimitive for Port
impl Copy for Port
impl Eq for Port
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.