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§
Sourcefn preserve(self, unit: impl Into<Unit>, next_force_type: impl Into<Force_Type>)
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
Sourcefn restore(self, index: impl Into<i32>, prev_unit: impl Into<Unit>)
fn restore(self, index: impl Into<i32>, prev_unit: impl Into<Unit>)
Restore(i32, crate::app::unit::Unit) overload
Sourcefn before_dispos(self, index: impl Into<i32>)
fn before_dispos(self, index: impl Into<i32>)
BeforeDispos(i32) overload
Sourcefn preview_latest(self)
fn preview_latest(self)
PreviewLatest() overload
Sourcefn preview_decide(self)
fn preview_decide(self)
PreviewDecide() overload
Sourcefn preview_cancel(self)
fn preview_cancel(self)
PreviewCancel() overload
Sourcefn preview_delete_restored_unit(self, index: impl Into<i32>)
fn preview_delete_restored_unit(self, index: impl Into<i32>)
PreviewDeleteRestoredUnit(i32) overload
Sourcefn preview_cleanup(self, index: impl Into<i32>)
fn preview_cleanup(self, index: impl Into<i32>)
PreviewCleanup(i32) overload
Sourcefn get_version(self) -> i32
fn get_version(self) -> i32
get_Version() overload
Sourcefn on_serialize(self, stream: impl Into<Stream_2>)
fn on_serialize(self, stream: impl Into<Stream_2>)
OnSerialize(crate::app::stream_2::Stream_2) overload
Sourcefn on_deserialize(self, stream: impl Into<Stream_2>, version: impl Into<i32>)
fn on_deserialize(self, stream: impl Into<Stream_2>, version: impl Into<i32>)
OnDeserialize(crate::app::stream_2::Stream_2, 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§
impl<__T: IMapHistory_RewindUnitMap> IMapHistory_RewindUnitMapMethods for __T
Available on crate feature
app-maphistory only.