#[repr(u8)]pub enum Restriction {
None = 0,
NoMagic = 1,
AttackEnemies = 2,
AttackAllies = 3,
NoMove = 4,
}Variants§
Trait Implementations§
Source§impl Clone for Restriction
impl Clone for Restriction
Source§fn clone(&self) -> Restriction
fn clone(&self) -> Restriction
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 Debug for Restriction
impl Debug for Restriction
Source§impl Default for Restriction
impl Default for Restriction
Source§fn default() -> Restriction
fn default() -> Restriction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Restriction
impl<'de> Deserialize<'de> for Restriction
Source§fn deserialize<D>(deserializer: D) -> Result<Self, DeError>where
D: DeserializerTrait<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, DeError>where
D: DeserializerTrait<'de>,
Deserialize this value from the given deserializer.
Source§impl<'de> Deserialize<'de> for Restriction
impl<'de> Deserialize<'de> for Restriction
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 Display for Restriction
impl Display for Restriction
Source§impl From<Restriction> for u8
impl From<Restriction> for u8
Source§fn from(enum_value: Restriction) -> Self
fn from(enum_value: Restriction) -> Self
Converts to this type from the input type.
Source§impl IntoEnumIterator for Restriction
impl IntoEnumIterator for Restriction
type Iterator = RestrictionIter
fn iter() -> RestrictionIter ⓘ
Source§impl PartialEq for Restriction
impl PartialEq for Restriction
Source§impl Serialize for Restriction
impl Serialize for Restriction
Source§impl Serialize for Restriction
impl Serialize for Restriction
Source§impl TryFrom<u8> for Restriction
impl TryFrom<u8> for Restriction
Source§type Error = TryFromPrimitiveError<Restriction>
type Error = TryFromPrimitiveError<Restriction>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for Restriction
impl TryFromPrimitive for Restriction
const NAME: &'static str = "Restriction"
type Primitive = u8
type Error = TryFromPrimitiveError<Restriction>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Restriction
impl Eq for Restriction
impl StructuralPartialEq for Restriction
Auto Trait Implementations§
impl Freeze for Restriction
impl RefUnwindSafe for Restriction
impl Send for Restriction
impl Sync for Restriction
impl Unpin for Restriction
impl UnwindSafe for Restriction
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§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.