pub struct VersionedEventWrapper<R: BattleRules> { /* private fields */ }Expand description
Decorates an EventWrapper with the battle rules version.
Implementations§
Source§impl<R: BattleRules> VersionedEventWrapper<R>
impl<R: BattleRules> VersionedEventWrapper<R>
Methods from Deref<Target = EventWrapper<R>>§
Trait Implementations§
Source§impl<R: BattleRules> Clone for VersionedEventWrapper<R>
impl<R: BattleRules> Clone for VersionedEventWrapper<R>
Source§impl<R: BattleRules> Deref for VersionedEventWrapper<R>
impl<R: BattleRules> Deref for VersionedEventWrapper<R>
Source§impl<R: BattleRules + 'static> From<FlatVersionedEvent<R>> for VersionedEventWrapper<R>
impl<R: BattleRules + 'static> From<FlatVersionedEvent<R>> for VersionedEventWrapper<R>
Source§fn from(event: FlatVersionedEvent<R>) -> Self
fn from(event: FlatVersionedEvent<R>) -> Self
Converts to this type from the input type.
Source§impl<R: BattleRules + 'static> From<VersionedEventWrapper<R>> for FlatVersionedEvent<R>
impl<R: BattleRules + 'static> From<VersionedEventWrapper<R>> for FlatVersionedEvent<R>
Source§fn from(event: VersionedEventWrapper<R>) -> Self
fn from(event: VersionedEventWrapper<R>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<R> Freeze for VersionedEventWrapper<R>
impl<R> !RefUnwindSafe for VersionedEventWrapper<R>
impl<R> Send for VersionedEventWrapper<R>
impl<R> !Sync for VersionedEventWrapper<R>
impl<R> Unpin for VersionedEventWrapper<R>
impl<R> UnsafeUnpin for VersionedEventWrapper<R>
impl<R> !UnwindSafe for VersionedEventWrapper<R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more