Enum playing_cards::core::CardDeckError
source · #[non_exhaustive]pub enum CardDeckError {
EntropyError(Error),
}Expand description
Error type for CardDeck
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EntropyError(Error)
Something wrong happened when tryinfg to sample entropy for randomness
While this is rare to occur, this can happend if you do not provide a seed to shuffle the deck.
Trait Implementations§
source§impl Debug for CardDeckError
impl Debug for CardDeckError
source§impl Display for CardDeckError
impl Display for CardDeckError
source§impl Error for CardDeckError
impl Error for CardDeckError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl RefUnwindSafe for CardDeckError
impl Send for CardDeckError
impl Sync for CardDeckError
impl Unpin for CardDeckError
impl UnwindSafe for CardDeckError
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