SpecialMove

Trait SpecialMove 

Source
pub trait SpecialMove<T: Copy + Default + AddAssign + Add<Output = T> + Div<Output = T> + DivAssign + Mul<Output = T> + MulAssign + Neg<Output = T> + Rem<Output = T> + RemAssign + Sub<Output = T> + SubAssign + PartialOrd + NumCast> {
    // Required methods
    fn damage(&self, level: T) -> T;
    fn mp_total(&self, _input: T) -> T;
    fn mp_cost(&self, _input: T) -> T;

    // Provided methods
    fn tp_cost(&self, input: T) -> T { ... }
    fn tp_total(&self, input: T) -> T { ... }
}

Required Methods§

Source

fn damage(&self, level: T) -> T

Source

fn mp_total(&self, _input: T) -> T

Source

fn mp_cost(&self, _input: T) -> T

Provided Methods§

Source

fn tp_cost(&self, input: T) -> T

Source

fn tp_total(&self, input: T) -> T

Implementors§

Source§

impl<T: Copy + Default + AddAssign + Add<Output = T> + Div<Output = T> + DivAssign + Mul<Output = T> + MulAssign + Neg<Output = T> + Rem<Output = T> + RemAssign + Sub<Output = T> + SubAssign + PartialOrd + NumCast> SpecialMove<T> for Normal