[][src]Struct weasel::history::History

pub struct History<R: BattleRules> { /* fields omitted */ }

History is the place where all events are kept, in a way such that they construct a single, consistent timeline.

Implementations

impl<R: BattleRules> History<R>[src]

pub fn events(&self) -> &[EventWrapper<R>][src]

Returns all events inside this timeline.

pub fn len(&self) -> EventId[src]

Returns the number of events in this history.

pub fn is_empty(&self) -> bool[src]

Returns whether this history is empty.

Auto Trait Implementations

impl<R> !RefUnwindSafe for History<R>

impl<R> Send for History<R>

impl<R> !Sync for History<R>

impl<R> Unpin for History<R>

impl<R> !UnwindSafe for History<R>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,