pub enum ShinyChance {
Never,
Chance,
Always,
}Expand description
The chance that a Mon is shiny.
Variants§
Trait Implementations§
Source§impl Clone for ShinyChance
impl Clone for ShinyChance
Source§fn clone(&self) -> ShinyChance
fn clone(&self) -> ShinyChance
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 ShinyChance
impl Debug for ShinyChance
Source§impl Default for ShinyChance
impl Default for ShinyChance
Source§fn default() -> ShinyChance
fn default() -> ShinyChance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ShinyChance
impl<'de> Deserialize<'de> for ShinyChance
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<bool> for ShinyChance
impl From<bool> for ShinyChance
Source§impl FromStr for ShinyChance
impl FromStr for ShinyChance
Source§impl PartialEq for ShinyChance
impl PartialEq for ShinyChance
Source§impl Serialize for ShinyChance
impl Serialize for ShinyChance
impl StructuralPartialEq for ShinyChance
Auto Trait Implementations§
impl Freeze for ShinyChance
impl RefUnwindSafe for ShinyChance
impl Send for ShinyChance
impl Sync for ShinyChance
impl Unpin for ShinyChance
impl UnsafeUnpin for ShinyChance
impl UnwindSafe for ShinyChance
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