Skip to main content

GameViewDtoExt

Trait GameViewDtoExt 

Source
pub trait GameViewDtoExt {
    // Required methods
    fn from_engine(
        game: &GameState,
        mana_pools: &[ManaPool],
        human_player: PlayerId,
        game_id: &str,
    ) -> Self;
    fn all_zone_cards(&self) -> impl Iterator<Item = &CardDto>;
}

Required Methods§

Source

fn from_engine( game: &GameState, mana_pools: &[ManaPool], human_player: PlayerId, game_id: &str, ) -> Self

Source

fn all_zone_cards(&self) -> impl Iterator<Item = &CardDto>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§