pub struct UnitRef {
pub id: u64,
pub country: Option<Tag>,
pub kind: UnitKind,
}Expand description
One unit of the player’s selection.
Fields§
§id: u64The unit’s id.
country: Option<Tag>The country it belongs to (a player may select units of others to look).
kind: UnitKindArmy or navy.
Trait Implementations§
impl Copy for UnitRef
impl Eq for UnitRef
impl StructuralPartialEq for UnitRef
Auto Trait Implementations§
impl Forget for UnitRef
impl Freeze for UnitRef
impl Move for UnitRef
impl RefUnwindSafe for UnitRef
impl Send for UnitRef
impl Sync for UnitRef
impl Unpin for UnitRef
impl UnsafeUnpin for UnitRef
impl UnwindSafe for UnitRef
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