pub enum DisplayType {
Visible,
Snapshot,
Hidden,
Placeholder,
}
Expand description
The display type of Unit
.
Can be accessed through display_type
field.
Variants§
Visible
Fully visible.
Snapshot
Dimmed version of unit left behind after entering fog of war.
Hidden
Fully hidden.
Placeholder
Building that hasn’t started construction.
Implementations§
Source§impl DisplayType
impl DisplayType
pub fn is_visible(self) -> bool
pub fn is_snapshot(self) -> bool
pub fn is_placeholder(self) -> bool
Trait Implementations§
Source§impl Clone for DisplayType
impl Clone for DisplayType
Source§fn clone(&self) -> DisplayType
fn clone(&self) -> DisplayType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DisplayType
impl Debug for DisplayType
Source§impl PartialEq for DisplayType
impl PartialEq for DisplayType
impl Copy for DisplayType
impl Eq for DisplayType
impl StructuralPartialEq for DisplayType
Auto Trait Implementations§
impl Freeze for DisplayType
impl RefUnwindSafe for DisplayType
impl Send for DisplayType
impl Sync for DisplayType
impl Unpin for DisplayType
impl UnwindSafe for DisplayType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.