pub enum Part {
Move = 0,
Work = 1,
Carry = 2,
Attack = 3,
RangedAttack = 4,
Tough = 5,
Heal = 6,
Claim = 7,
// some variants omitted
}
Expand description
Translates body part type and BODYPARTS_ALL
constants
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Part
impl<'de> Deserialize<'de> for Part
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromWasmAbi for Part
impl FromWasmAbi for Part
source§impl IntoWasmAbi for Part
impl IntoWasmAbi for Part
source§impl OptionFromWasmAbi for Part
impl OptionFromWasmAbi for Part
source§impl OptionIntoWasmAbi for Part
impl OptionIntoWasmAbi for Part
source§impl PartialEq for Part
impl PartialEq for Part
source§impl Sequence for Part
impl Sequence for Part
impl Copy for Part
impl Eq for Part
impl StructuralEq for Part
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.