Skip to main content

IMapHistory_RewindUnitMapMethods

Trait IMapHistory_RewindUnitMapMethods 

Source
pub trait IMapHistory_RewindUnitMapMethods: IMapHistory_RewindUnitMap {
    // Provided methods
    fn preserve(
        self,
        unit: impl Into<Unit>,
        next_force_type: impl Into<Force_Type>,
    ) { ... }
    fn restore(self, index: impl Into<i32>, prev_unit: impl Into<Unit>) { ... }
    fn before_dispos(self, index: impl Into<i32>) { ... }
    fn preview_latest(self) { ... }
    fn preview_decide(self) { ... }
    fn preview_cancel(self) { ... }
    fn preview_delete_restored_unit(self, index: impl Into<i32>) { ... }
    fn preview_cleanup(self, index: impl Into<i32>) { ... }
    fn get_version(self) -> i32 { ... }
    fn on_serialize(self, stream: impl Into<Stream_2>) { ... }
    fn on_deserialize(
        self,
        stream: impl Into<Stream_2>,
        version: impl Into<i32>,
    ) { ... }
    fn ctor(self) { ... }
}

Provided Methods§

Source

fn preserve(self, unit: impl Into<Unit>, next_force_type: impl Into<Force_Type>)

Preserve(crate::app::unit::Unit, crate::app::force::Force_Type) overload

Source

fn restore(self, index: impl Into<i32>, prev_unit: impl Into<Unit>)

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

Source

fn before_dispos(self, index: impl Into<i32>)

BeforeDispos(i32) overload

Source

fn preview_latest(self)

PreviewLatest() overload

Source

fn preview_decide(self)

PreviewDecide() overload

Source

fn preview_cancel(self)

PreviewCancel() overload

Source

fn preview_delete_restored_unit(self, index: impl Into<i32>)

PreviewDeleteRestoredUnit(i32) overload

Source

fn preview_cleanup(self, index: impl Into<i32>)

PreviewCleanup(i32) overload

Source

fn get_version(self) -> i32

get_Version() overload

Source

fn on_serialize(self, stream: impl Into<Stream_2>)

OnSerialize(crate::app::stream_2::Stream_2) overload

Source

fn on_deserialize(self, stream: impl Into<Stream_2>, version: impl Into<i32>)

OnDeserialize(crate::app::stream_2::Stream_2, 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: IMapHistory_RewindUnitMap> IMapHistory_RewindUnitMapMethods for __T

Available on crate feature app-maphistory only.