1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
// =============================================================================
//! - CroftSoft Roles Library
//!
//! # Metadata
//! - Copyright: © 2023-2024 [`CroftSoft Inc`]
//! - Author: [`David Wallace Croft`]
//! - Created: 2023-01-18
//! - Updated: 2024-02-19
//!
//! [`CroftSoft Inc`]: https://www.croftsoft.com/
//! [`David Wallace Croft`]: https://www.croftsoft.com/people/david/
// =============================================================================
pub trait Initializer<T = ()> {
fn initialize(&self) -> T;
}
pub trait InitializerMut<T = ()> {
fn initialize(&mut self) -> T;
}
pub trait Painter<T = ()> {
fn paint(&self) -> T;
}
pub trait PainterMut<T = ()> {
fn paint(&mut self) -> T;
}
pub trait Preparer<T = ()> {
fn prepare(&self) -> T;
}
pub trait PreparerMut<T = ()> {
fn prepare(&mut self) -> T;
}
pub trait Updater<T = ()> {
fn update(&self) -> T;
}
pub trait UpdaterMut<T = ()> {
fn update(&mut self) -> T;
}
pub trait Validator<T = ()> {
fn validate(&self) -> T;
}
pub trait ValidatorMut<T = ()> {
fn validate(&mut self) -> T;
}