[−][src]Struct bk2d::utils::Players
Fields
players: Vec<P>
current: Option<usize>
Methods
impl<P> Players<P>
[src]
pub fn new() -> Players<P>
[src]
pub fn sure_start(&self, msg: &str)
[src]
pub fn not_start(&self, msg: &str)
[src]
pub fn start(&mut self)
[src]
pub fn is_start(&self) -> bool
[src]
pub fn add(&mut self, p: P)
[src]
pub fn remove(&mut self, i: usize)
[src]
pub fn current_index(&self) -> usize
[src]
pub fn current_ref(&self) -> &P
[src]
pub fn current_mut(&mut self) -> &mut P
[src]
pub fn next_player(&mut self) -> usize
[src]
impl<P: Player> Players<P>
[src]
pub fn current_ident(&self) -> &<P as Player>::Ident
[src]
Trait Implementations
impl<P: Clone> Clone for Players<P>
[src]
fn clone(&self) -> Players<P>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P: Default> Default for Players<P>
[src]
impl<P: Debug> Debug for Players<P>
[src]
Auto Trait Implementations
impl<P> Send for Players<P> where
P: Send,
P: Send,
impl<P> Unpin for Players<P> where
P: Unpin,
P: Unpin,
impl<P> Sync for Players<P> where
P: Sync,
P: Sync,
impl<P> UnwindSafe for Players<P> where
P: UnwindSafe,
P: UnwindSafe,
impl<P> RefUnwindSafe for Players<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,