PkmnLib_rs/src/lib.rs

28 lines
672 B
Rust
Raw Normal View History

// The too many arguments is annoying, especially for when we create constructors, disable.
#![allow(clippy::too_many_arguments, clippy::needless_range_loop)]
2022-06-03 14:35:18 +00:00
#![feature(test)]
#![feature(bench_black_box)]
#![feature(let_chains)]
#![feature(once_cell)]
#![feature(const_option)]
extern crate core;
2022-06-03 14:35:18 +00:00
2022-06-06 11:54:59 +00:00
use crate::dynamic_data::libraries::script_resolver::ScriptCategory;
pub mod defines;
pub mod dynamic_data;
pub mod static_data;
pub mod utils;
2022-06-06 11:54:59 +00:00
#[derive(Debug, Clone)]
pub enum PokemonError {
ScriptNotFound { category: ScriptCategory, name: String },
2022-06-06 11:54:59 +00:00
MiscError,
InvalidTargetRequested,
2022-06-06 11:54:59 +00:00
}
pub type PkmnResult<T> = Result<T, PokemonError>;
pub use utils::*;