pub enum Attribute {
Light = 1,
Armored = 2,
Biological = 3,
Mechanical = 4,
Robotic = 5,
Psionic = 6,
Massive = 7,
Structure = 8,
Hover = 9,
Heroic = 10,
Summoned = 11,
}
Variants§
Light = 1
Armored = 2
Biological = 3
Mechanical = 4
Robotic = 5
Psionic = 6
Massive = 7
Structure = 8
Hover = 9
Heroic = 10
Summoned = 11
Trait Implementations§
Source§impl ProtobufEnum for Attribute
impl ProtobufEnum for Attribute
Source§fn from_i32(value: i32) -> Option<Attribute>
fn from_i32(value: i32) -> Option<Attribute>
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 Attribute
impl ProtobufValue for Attribute
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 Attribute
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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
)