#[repr(u8)]pub enum WaitingKind {
Tanki = 0,
Shanpon = 1,
Kanchan = 2,
RyanmenHigh = 3,
RyanmenLow = 4,
RyanmenBoth = 5,
}Variants§
Implementations§
Source§impl WaitingKind
impl WaitingKind
Source§impl WaitingKind
impl WaitingKind
pub const fn is_shuntsu(self) -> bool
pub const fn pattern(self) -> u32
pub const fn pattern_at(self, pos: u8) -> u32
Trait Implementations§
Source§impl AsRef<str> for WaitingKind
impl AsRef<str> for WaitingKind
Source§impl Clone for WaitingKind
impl Clone for WaitingKind
Source§fn clone(&self) -> WaitingKind
fn clone(&self) -> WaitingKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitingKind
impl Debug for WaitingKind
Source§impl Default for WaitingKind
impl Default for WaitingKind
Source§fn default() -> WaitingKind
fn default() -> WaitingKind
Returns the “default value” for a type. Read more
Source§impl FromStr for WaitingKind
impl FromStr for WaitingKind
Source§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<WaitingKind, <WaitingKind as FromStr>::Err>
fn from_str(s: &str) -> Result<WaitingKind, <WaitingKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Ord for WaitingKind
impl Ord for WaitingKind
Source§fn cmp(&self, other: &WaitingKind) -> Ordering
fn cmp(&self, other: &WaitingKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WaitingKind
impl PartialEq for WaitingKind
Source§impl PartialOrd for WaitingKind
impl PartialOrd for WaitingKind
Source§impl TryFrom<&str> for WaitingKind
impl TryFrom<&str> for WaitingKind
Source§type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: &str,
) -> Result<WaitingKind, <WaitingKind as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<WaitingKind, <WaitingKind as TryFrom<&str>>::Error>
Performs the conversion.
impl Copy for WaitingKind
impl Eq for WaitingKind
impl StructuralPartialEq for WaitingKind
Auto Trait Implementations§
impl Freeze for WaitingKind
impl RefUnwindSafe for WaitingKind
impl Send for WaitingKind
impl Sync for WaitingKind
impl Unpin for WaitingKind
impl UnwindSafe for WaitingKind
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more