pub enum DeckError {
TooManyCharacterCards,
TooManyActionCards,
NotEnoughCharacterCards(u8),
NotEnoughActionCards(u8),
TalentRequiresCharacter(TalentCard),
ResonanceRequiresAtLeastTwo(ElementalResonanceCard),
CharacterAppearsMoreThanOnce(CharacterCard),
ActionCardAppearsMoreThanTwice(ActionCard),
}Variants§
TooManyCharacterCards
Character cards > 3
TooManyActionCards
Action cards > 30
NotEnoughCharacterCards(u8)
Character cards < 3 (u8 represents current amount)
NotEnoughActionCards(u8)
Action cards < 30 (u8 represents current amount)
TalentRequiresCharacter(TalentCard)
Talent card is present, but its CharacterCard requirement is not
ResonanceRequiresAtLeastTwo(ElementalResonanceCard)
Resonance card is present, but less than 2 characters that match its element
CharacterAppearsMoreThanOnce(CharacterCard)
Deck must include three different character cards
ActionCardAppearsMoreThanTwice(ActionCard)
Only one or two of the same action card allowed for a deck
Trait Implementations§
Source§impl Error for DeckError
impl Error for DeckError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl Eq for DeckError
impl StructuralPartialEq for DeckError
Auto Trait Implementations§
impl Freeze for DeckError
impl RefUnwindSafe for DeckError
impl Send for DeckError
impl Sync for DeckError
impl Unpin for DeckError
impl UnwindSafe for DeckError
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