#[repr(u16)]pub enum MaterialType {
Show 33 variants
Dirt = 0,
Sand = 1,
Stone = 2,
Snow = 3,
Wood = 4,
MetalHollow = 5,
MetalThin = 6,
MetalThick = 7,
Rubber = 8,
Glass = 9,
ForceField = 10,
Grunt = 11,
HunterArmor = 12,
HunterSkin = 13,
Elite = 14,
Jackal = 15,
JackalEnergyShield = 16,
EngineerSkin = 17,
EngineerForceField = 18,
FloodCombatForm = 19,
FloodCarrierForm = 20,
CyborgArmor = 21,
CyborgEnergyShield = 22,
HumanArmor = 23,
HumanSkin = 24,
Sentinel = 25,
Monitor = 26,
Plastic = 27,
Water = 28,
Leaves = 29,
EliteEnergyShield = 30,
Ice = 31,
HunterShield = 32,
}Variants§
Dirt = 0
Sand = 1
Stone = 2
Snow = 3
Wood = 4
MetalHollow = 5
MetalThin = 6
MetalThick = 7
Rubber = 8
Glass = 9
ForceField = 10
Grunt = 11
HunterArmor = 12
HunterSkin = 13
Elite = 14
Jackal = 15
JackalEnergyShield = 16
EngineerSkin = 17
EngineerForceField = 18
FloodCombatForm = 19
FloodCarrierForm = 20
CyborgArmor = 21
CyborgEnergyShield = 22
HumanArmor = 23
HumanSkin = 24
Sentinel = 25
Monitor = 26
Plastic = 27
Water = 28
Leaves = 29
EliteEnergyShield = 30
Ice = 31
HunterShield = 32
Trait Implementations§
Source§impl Clone for MaterialType
impl Clone for MaterialType
Source§fn clone(&self) -> MaterialType
fn clone(&self) -> MaterialType
Returns a duplicate 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 Default for MaterialType
impl Default for MaterialType
Source§fn default() -> MaterialType
fn default() -> MaterialType
Returns the “default value” for a type. Read more
Source§impl FromStr for MaterialType
impl FromStr for MaterialType
Source§type Err = ErrorMessage
type Err = ErrorMessage
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> ErrorMessageResult<MaterialType>
fn from_str(s: &str) -> ErrorMessageResult<MaterialType>
Parses a string
s to return a value of this type. Read moreSource§impl PartialEq for MaterialType
impl PartialEq for MaterialType
Source§impl TagEnumFn for MaterialType
impl TagEnumFn for MaterialType
Source§fn from_u16(input_value: u16) -> ErrorMessageResult<MaterialType>
fn from_u16(input_value: u16) -> ErrorMessageResult<MaterialType>
Convert the number into an enum. Read more
Source§fn options_pretty() -> &'static [&'static str]
fn options_pretty() -> &'static [&'static str]
Get all options as their display representation.
Source§fn as_str_pretty(self) -> &'static strwhere
Self: Sized,
fn as_str_pretty(self) -> &'static strwhere
Self: Sized,
Get the display string representation of the enum.
Source§impl TagSerialize for MaterialType
impl TagSerialize for MaterialType
Source§fn into_tag(
&self,
data: &mut Vec<u8>,
at: usize,
struct_end: usize,
) -> ErrorMessageResult<()>
fn into_tag( &self, data: &mut Vec<u8>, at: usize, struct_end: usize, ) -> ErrorMessageResult<()>
Serialize the data into tag format, returning an error on failure (except for out-of-bounds and allocation errors which will panic).
Source§fn from_tag(
data: &[u8],
at: usize,
struct_end: usize,
cursor: &mut usize,
) -> ErrorMessageResult<MaterialType>
fn from_tag( data: &[u8], at: usize, struct_end: usize, cursor: &mut usize, ) -> ErrorMessageResult<MaterialType>
Deserialize the data from tag format, returning an error on failure (except for allocation errors which will panic).
Source§fn into_tag_cached(
&self,
data: &mut [u8],
at: usize,
struct_end: usize,
) -> ErrorMessageResult<()>where
Self: Sized,
fn into_tag_cached(
&self,
data: &mut [u8],
at: usize,
struct_end: usize,
) -> ErrorMessageResult<()>where
Self: Sized,
Serialize the data into tag format in little endian, returning an error on failure (except for out-of-bounds and allocation errors which will panic).
Source§fn from_tag_cached(
data: &[u8],
at: usize,
struct_end: usize,
) -> ErrorMessageResult<Self>where
Self: Sized,
fn from_tag_cached(
data: &[u8],
at: usize,
struct_end: usize,
) -> ErrorMessageResult<Self>where
Self: Sized,
Deserialize the data from tag format from little endian, returning an error on failure (except for allocation errors which will panic).
impl Copy for MaterialType
impl StructuralPartialEq for MaterialType
Auto Trait Implementations§
impl Freeze for MaterialType
impl RefUnwindSafe for MaterialType
impl Send for MaterialType
impl Sync for MaterialType
impl Unpin for MaterialType
impl UnwindSafe for MaterialType
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