Skip to main content

IExpSetterMethods

Trait IExpSetterMethods 

Source
pub trait IExpSetterMethods: IExpSetter {
    // Provided methods
    fn setup(self, unit: impl Into<Unit>, gain_exp: impl Into<i32>) { ... }
    fn set_exp(self, main: impl Into<Unit>) { ... }
    fn set_add_exp_main(self, exp: impl Into<i32>) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn setup(self, unit: impl Into<Unit>, gain_exp: impl Into<i32>)

Setup(crate::app::unit::Unit, i32) overload

Source

fn set_exp(self, main: impl Into<Unit>)

SetExp(crate::app::unit::Unit) overload

Source

fn set_add_exp_main(self, exp: impl Into<i32>)

SetAddExpMain(i32) overload

Source

fn ctor(self)

.ctor() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IExpSetter> IExpSetterMethods for __T

Available on crate feature app-expsetter only.