pub struct HandPossibleMeld {
pub is_mahjong: bool,
pub is_concealed: bool,
pub is_upgrade: bool,
pub tiles: Vec<TileId>,
}
Fields§
§is_mahjong: bool
§is_concealed: bool
§is_upgrade: bool
§tiles: Vec<TileId>
Implementations§
source§impl HandPossibleMeld
impl HandPossibleMeld
pub fn from_summary(summary: &str) -> Self
pub fn from_summaries(summary: &[&str]) -> Vec<Self>
pub fn to_summary(&self) -> String
Trait Implementations§
source§impl Clone for HandPossibleMeld
impl Clone for HandPossibleMeld
source§fn clone(&self) -> HandPossibleMeld
fn clone(&self) -> HandPossibleMeld
Returns a copy 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 HandPossibleMeld
impl Debug for HandPossibleMeld
source§impl<'de> Deserialize<'de> for HandPossibleMeld
impl<'de> Deserialize<'de> for HandPossibleMeld
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<PossibleMeld> for HandPossibleMeld
impl From<PossibleMeld> for HandPossibleMeld
source§fn from(meld: PossibleMeld) -> Self
fn from(meld: PossibleMeld) -> Self
Converts to this type from the input type.
source§impl PartialEq for HandPossibleMeld
impl PartialEq for HandPossibleMeld
source§impl Serialize for HandPossibleMeld
impl Serialize for HandPossibleMeld
impl StructuralPartialEq for HandPossibleMeld
Auto Trait Implementations§
impl Freeze for HandPossibleMeld
impl RefUnwindSafe for HandPossibleMeld
impl Send for HandPossibleMeld
impl Sync for HandPossibleMeld
impl Unpin for HandPossibleMeld
impl UnwindSafe for HandPossibleMeld
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)