Skip to main content

ISupportCalculatorMethods

Trait ISupportCalculatorMethods 

Source
pub trait ISupportCalculatorMethods: ISupportCalculator {
    // Provided methods
    fn ctor(self) { ... }
    fn clear(self) { ... }
    fn setup(self, unit: impl Into<Unit>, x: impl Into<i32>, z: impl Into<i32>) { ... }
    fn range_function(
        self,
        x: impl Into<i32>,
        z: impl Into<i32>,
        range: impl Into<i32>,
    ) { ... }
    fn calc(self) { ... }
    fn get_hit(self) -> i32 { ... }
    fn get_avoid(self) -> i32 { ... }
    fn get_critical(self) -> i32 { ... }
    fn get_secure(self) -> i32 { ... }
    fn get_show_units(self) -> Array<Unit> { ... }
    fn register_show_unit(
        self,
        unit: impl Into<Unit>,
        reliance_level: impl Into<RelianceData_Level>,
    ) { ... }
    fn insert_show_unit(
        self,
        index: impl Into<i32>,
        unit: impl Into<Unit>,
        reliance_level: impl Into<RelianceData_Level>,
    ) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn clear(self)

Clear() overload

Source

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

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

Source

fn range_function( self, x: impl Into<i32>, z: impl Into<i32>, range: impl Into<i32>, )

RangeFunction(i32, i32, i32) overload

Source

fn calc(self)

Calc() overload

Source

fn get_hit(self) -> i32

get_Hit() overload

Source

fn get_avoid(self) -> i32

get_Avoid() overload

Source

fn get_critical(self) -> i32

get_Critical() overload

Source

fn get_secure(self) -> i32

get_Secure() overload

Source

fn get_show_units(self) -> Array<Unit>

get_ShowUnits() overload

Source

fn register_show_unit( self, unit: impl Into<Unit>, reliance_level: impl Into<RelianceData_Level>, )

RegisterShowUnit(crate::app::unit::Unit, crate::app::reliancedata::RelianceData_Level) overload

Source

fn insert_show_unit( self, index: impl Into<i32>, unit: impl Into<Unit>, reliance_level: impl Into<RelianceData_Level>, )

InsertShowUnit(i32, crate::app::unit::Unit, crate::app::reliancedata::RelianceData_Level) 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: ISupportCalculator> ISupportCalculatorMethods for __T

Available on crate feature app-supportcalculator only.