pub struct Deck { /* private fields */ }Expand description
A deck for Genius Invokation TCG
Implementations§
Source§impl Deck
impl Deck
pub fn has_character(&self, card: CharacterCard) -> bool
pub fn contains(&self, card: ActionCard) -> bool
pub fn iter(&self) -> IterAction<'_>
pub fn iter_unique(&self) -> IterAction<'_>
pub fn from_iter( iter: impl IntoIterator<Item = Card>, ) -> Result<Self, DeckError>
pub fn from_exact( characters: [CharacterCard; 3], actions: [ActionCard; 30], ) -> Result<Self, DeckError>
Trait Implementations§
impl Eq for Deck
impl StructuralPartialEq for Deck
Auto Trait Implementations§
impl Freeze for Deck
impl RefUnwindSafe for Deck
impl Send for Deck
impl Sync for Deck
impl Unpin for Deck
impl UnwindSafe for Deck
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