Skip to main content

IBattleCalculator_OrderListMethods

Trait IBattleCalculator_OrderListMethods 

Source
pub trait IBattleCalculator_OrderListMethods: IBattleCalculator_OrderList {
    // Provided methods
    fn ctor(self) { ... }
    fn try_add(
        self,
        info: impl Into<BattleInfo>,
        side: impl Into<BattleSide_Type>,
    ) { ... }
    fn can_swap(
        self,
        side: impl Into<BattleSide_Type>,
        index: impl Into<i32>,
    ) -> bool { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn try_add(self, info: impl Into<BattleInfo>, side: impl Into<BattleSide_Type>)

TryAdd(crate::app::battleinfo::BattleInfo, crate::app::battleside::BattleSide_Type) overload

Source

fn can_swap( self, side: impl Into<BattleSide_Type>, index: impl Into<i32>, ) -> bool

CanSwap(crate::app::battleside::BattleSide_Type, i32) 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: IBattleCalculator_OrderList> IBattleCalculator_OrderListMethods for __T

Available on crate feature app-battlecalculator only.