pub struct DeckBuilder<C: Copy + Clone + Debug + Ord + Display>(/* private fields */);Expand description
Builder for games::deck::Deck
use games::cards::StandardCard;
use games::deck::{Deck,DeckBuilder};
let deck: Deck<StandardCard> = DeckBuilder::default().sets(5).build();Implementations§
Trait Implementations§
Source§impl<C: DefaultCollection> Default for DeckBuilder<C>
impl<C: DefaultCollection> Default for DeckBuilder<C>
Source§fn default() -> DeckBuilder<C>
fn default() -> DeckBuilder<C>
Returns the “default value” for a type. Read more
impl<C: Eq + Copy + Clone + Debug + Ord + Display> Eq for DeckBuilder<C>
Source§impl<C: Ord + Copy + Clone + Debug + Ord + Display> Ord for DeckBuilder<C>
impl<C: Ord + Copy + Clone + Debug + Ord + Display> Ord for DeckBuilder<C>
Source§fn cmp(&self, other: &DeckBuilder<C>) -> Ordering
fn cmp(&self, other: &DeckBuilder<C>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<C: PartialEq + Copy + Clone + Debug + Ord + Display> PartialEq for DeckBuilder<C>
impl<C: PartialEq + Copy + Clone + Debug + Ord + Display> PartialEq for DeckBuilder<C>
Source§fn eq(&self, other: &DeckBuilder<C>) -> bool
fn eq(&self, other: &DeckBuilder<C>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<C: PartialOrd + Copy + Clone + Debug + Ord + Display> PartialOrd for DeckBuilder<C>
impl<C: PartialOrd + Copy + Clone + Debug + Ord + Display> PartialOrd for DeckBuilder<C>
impl<C: PartialEq + Copy + Clone + Debug + Ord + Display> StructuralPartialEq for DeckBuilder<C>
Auto Trait Implementations§
impl<C> Freeze for DeckBuilder<C>
impl<C> RefUnwindSafe for DeckBuilder<C>where
C: RefUnwindSafe,
impl<C> Send for DeckBuilder<C>where
C: Send,
impl<C> Sync for DeckBuilder<C>where
C: Sync,
impl<C> Unpin for DeckBuilder<C>where
C: Unpin,
impl<C> UnsafeUnpin for DeckBuilder<C>
impl<C> UnwindSafe for DeckBuilder<C>where
C: UnwindSafe,
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