pub struct Cards { /* private fields */ }
Implementations
sourceimpl Cards
impl Cards
pub const fn empty() -> Self
pub fn deck() -> Self
pub fn shuffled_deck<S>(shuffle: S) -> Selfwhere
S: Shuffle,
pub fn into_split(self, left_len: usize) -> Split
pub fn into_left_split(self) -> Split
pub fn into_right_split(self) -> Split
pub fn flipped(self) -> Self
Trait Implementations
sourceimpl Extend<Card> for Cards
impl Extend<Card> for Cards
sourcefn extend<I>(&mut self, cards: I)where
I: IntoIterator<Item = Card>,
fn extend<I>(&mut self, cards: I)where
I: IntoIterator<Item = Card>,
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl From<Cards> for Foundation
impl From<Cards> for Foundation
sourceimpl FromIterator<Card> for Cards
impl FromIterator<Card> for Cards
sourcefn from_iter<I>(cards: I) -> Selfwhere
I: IntoIterator<Item = Card>,
fn from_iter<I>(cards: I) -> Selfwhere
I: IntoIterator<Item = Card>,
Creates a value from an iterator. Read more
sourceimpl<'a> IntoIterator for &'a Cards
impl<'a> IntoIterator for &'a Cards
type IntoIter = impl Iterator<Item = <&'a Cards as IntoIterator>::Item, Item = <&'a Cards as IntoIterator>::Item, Item = <&'a Cards as IntoIterator>::Item> + DoubleEndedIterator + ExactSizeIterator
type IntoIter = impl Iterator<Item = <&'a Cards as IntoIterator>::Item, Item = <&'a Cards as IntoIterator>::Item, Item = <&'a Cards as IntoIterator>::Item> + DoubleEndedIterator + ExactSizeIterator
Which kind of iterator are we turning this into?
sourceimpl IntoIterator for Cards
impl IntoIterator for Cards
type IntoIter = impl Iterator<Item = <Cards as IntoIterator>::Item, Item = <Cards as IntoIterator>::Item, Item = <Cards as IntoIterator>::Item> + DoubleEndedIterator + ExactSizeIterator
type IntoIter = impl Iterator<Item = <Cards as IntoIterator>::Item, Item = <Cards as IntoIterator>::Item, Item = <Cards as IntoIterator>::Item> + DoubleEndedIterator + ExactSizeIterator
Which kind of iterator are we turning this into?
sourceimpl PileMut for Cards
impl PileMut for Cards
fn take_at_most(&mut self, count: usize) -> Cards
fn take_at_most_one(&mut self) -> Option<Card>
fn take_or_none(&mut self, count: usize) -> Option<Cards>
fn take_exactly(&mut self, count: usize) -> Cards
fn take_exactly_one(&mut self) -> Card
fn take_all(&mut self) -> Cards
fn place<I>(&mut self, cards: I)where
I: IntoIterator<Item = Card>,
fn place_one(&mut self, card: Card)
impl Eq for Cards
impl StructuralEq for Cards
impl StructuralPartialEq for Cards
Auto Trait Implementations
impl RefUnwindSafe for Cards
impl Send for Cards
impl Sync for Cards
impl Unpin for Cards
impl UnwindSafe for Cards
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more