23 lines
397 B
Rust
23 lines
397 B
Rust
use std::fmt::Debug;
|
|
|
|
pub mod configure_game_rules;
|
|
pub mod confirm_dialog;
|
|
pub mod input_screen;
|
|
pub mod popup_screen;
|
|
pub mod select_bot_type;
|
|
pub mod select_play_mode;
|
|
pub mod set_boats_layout;
|
|
pub mod utils;
|
|
|
|
#[derive(Debug)]
|
|
pub enum ScreenResult<E> {
|
|
Ok(E),
|
|
Canceled,
|
|
}
|
|
|
|
impl<E: Debug> ScreenResult<E> {
|
|
pub fn as_string(&self) -> String {
|
|
format!("{:#?}", self)
|
|
}
|
|
}
|