pub struct PlayerState {
pub deck: Vec<CardInstance>,
pub hand: Vec<CardInstance>,
pub waiting_room: Vec<CardInstance>,
pub clock: Vec<CardInstance>,
pub level: Vec<CardInstance>,
pub stock: Vec<CardInstance>,
pub memory: Vec<CardInstance>,
pub climax: Vec<CardInstance>,
pub resolution: Vec<CardInstance>,
pub stage: [StageSlot; 5],
}Fields§
§deck: Vec<CardInstance>§hand: Vec<CardInstance>§waiting_room: Vec<CardInstance>§clock: Vec<CardInstance>§level: Vec<CardInstance>§stock: Vec<CardInstance>§memory: Vec<CardInstance>§climax: Vec<CardInstance>§resolution: Vec<CardInstance>§stage: [StageSlot; 5]Implementations§
Source§impl PlayerState
impl PlayerState
pub fn new(deck: Vec<CardInstance>) -> Self
Trait Implementations§
Source§impl Clone for PlayerState
impl Clone for PlayerState
Source§fn clone(&self) -> PlayerState
fn clone(&self) -> PlayerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerState
impl Debug for PlayerState
Auto Trait Implementations§
impl Freeze for PlayerState
impl RefUnwindSafe for PlayerState
impl Send for PlayerState
impl Sync for PlayerState
impl Unpin for PlayerState
impl UnwindSafe for PlayerState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more