pub enum DebugSetUnitValue_UnitValue {
Energy = 1,
Life = 2,
Shields = 3,
}
Variants§
Trait Implementations§
Source§impl Clone for DebugSetUnitValue_UnitValue
impl Clone for DebugSetUnitValue_UnitValue
Source§fn clone(&self) -> DebugSetUnitValue_UnitValue
fn clone(&self) -> DebugSetUnitValue_UnitValue
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 DebugSetUnitValue_UnitValue
impl Debug for DebugSetUnitValue_UnitValue
Source§impl Hash for DebugSetUnitValue_UnitValue
impl Hash for DebugSetUnitValue_UnitValue
Source§impl ProtobufEnum for DebugSetUnitValue_UnitValue
impl ProtobufEnum for DebugSetUnitValue_UnitValue
Source§fn from_i32(value: i32) -> Option<DebugSetUnitValue_UnitValue>
fn from_i32(value: i32) -> Option<DebugSetUnitValue_UnitValue>
Try to create an enum from
i32
value.
Return None
if value is unknown.Source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
Source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
Source§impl ProtobufValue for DebugSetUnitValue_UnitValue
impl ProtobufValue for DebugSetUnitValue_UnitValue
Source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl Copy for DebugSetUnitValue_UnitValue
impl Eq for DebugSetUnitValue_UnitValue
impl StructuralPartialEq for DebugSetUnitValue_UnitValue
Auto Trait Implementations§
impl Freeze for DebugSetUnitValue_UnitValue
impl RefUnwindSafe for DebugSetUnitValue_UnitValue
impl Send for DebugSetUnitValue_UnitValue
impl Sync for DebugSetUnitValue_UnitValue
impl Unpin for DebugSetUnitValue_UnitValue
impl UnwindSafe for DebugSetUnitValue_UnitValue
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)