[−][src]Enum slot_machine::game::symbol::Symbol
Symbols
Variants
Implementations
impl Symbol
[src]
pub const RANGE: RangeInclusive<u32>
[src]
The range of numbers for which there are corresponding symbols.
pub fn from_number(number: u32) -> Option<Self>
[src]
Searches for the corresponding Symbol
in the range [RANGE
] for number
.
Returns None
if the number
is not in the Symbol::RANGE
.
Examples
let symbol = Symbol::from_number(125); assert_eq!(symbol, Some(Symbol::Seven))
pub fn random() -> Symbol
[src]
Trait Implementations
impl Clone for Symbol
[src]
impl Debug for Symbol
[src]
impl<'de> Deserialize<'de> for Symbol
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Symbol
[src]
impl PartialEq<Symbol> for Symbol
[src]
pub fn eq(&self, other: &Symbol) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for Symbol
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for Symbol
[src]
Auto Trait Implementations
impl RefUnwindSafe for Symbol
[src]
impl Send for Symbol
[src]
impl Sync for Symbol
[src]
impl Unpin for Symbol
[src]
impl UnwindSafe for Symbol
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,