Effect

Enum Effect 

Source
#[repr(u8)]
pub enum Effect { BEN1 = 0, BEN2 = 1, BEN3 = 2, BENSELF = 3, UNK = 4, DETSELF = 5, DET3 = 6, DET2 = 7, DET1 = 8, }
Expand description

Represents a Effect value.

Variants§

§

BEN1 = 0

The BEN1 (Beneficial to Speaker) Effect.

§

BEN2 = 1

The BEN2 (Beneficial to Addressee) Effect.

§

BEN3 = 2

The BEN3 (Beneficial to 3rd Part) Effect.

§

BENSELF = 3

The BENSELF (Beneficial to Self) Effect.

§

UNK = 4

The UNK (Unknown) Effect.

§

DETSELF = 5

The DETSELF (Detrimental to Self) Effect.

§

DET3 = 6

The DET3 (Detrimental to 3rd Part) Effect.

§

DET2 = 7

The DET2 (Detrimental to Addressee) Effect.

§

DET1 = 8

The DET1 (Detrimental to Speaker) Effect.

Implementations§

Source§

impl Effect

Source

pub const CS_FORM: &'static str = "m"

The Cs form used in the affix representing this type.

Source§

impl Effect

Source

pub const ALL_ITEMS: [Self; 9]

All items in this category.

Trait Implementations§

Source§

impl AsGeneral<NonAspectualVn> for Effect

Source§

fn as_general(self) -> NonAspectualVn

Converts self into a more general version.
Source§

impl AsGeneral<Vn> for Effect

Source§

fn as_general(self) -> Vn

Converts self into a more general version.
Source§

impl Category for Effect

Source§

fn abbr(self) -> &'static str

Gets the abbreviation representing this item.
Source§

fn name(self) -> &'static str

Gets the full name of this item.
Source§

impl Clone for Effect

Source§

fn clone(&self) -> Effect

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Effect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Effect> for NonAspectualVn

Source§

fn from(value: Effect) -> Self

Converts to this type from the input type.
Source§

impl From<Effect> for Vn

Source§

fn from(value: Effect) -> Self

Converts to this type from the input type.
Source§

impl GlossStatic for Effect

Source§

fn gloss_static(&self, flags: GlossFlags) -> &'static str

Glosses this value with a set of flags, returning the gloss as a &'static str. Read more
Source§

impl Hash for Effect

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Effect

Source§

fn cmp(&self, other: &Effect) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Effect

Source§

fn eq(&self, other: &Effect) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Effect

Source§

fn partial_cmp(&self, other: &Effect) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl TryAsSpecific<Effect> for NonAspectualVn

Source§

fn try_as_specific(self) -> Option<Effect>

Converts self into a more specific version, returning None if it isn’t possible.
Source§

impl TryAsSpecific<Effect> for Vn

Source§

fn try_as_specific(self) -> Option<Effect>

Converts self into a more specific version, returning None if it isn’t possible.
Source§

impl Copy for Effect

Source§

impl Eq for Effect

Source§

impl StructuralPartialEq for Effect

Auto Trait Implementations§

§

impl Freeze for Effect

§

impl RefUnwindSafe for Effect

§

impl Send for Effect

§

impl Sync for Effect

§

impl Unpin for Effect

§

impl UnwindSafe for Effect

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Gloss for T
where T: GlossStatic,

Source§

fn gloss(&self, flags: GlossFlags) -> String

Glosses this value with a set of flags, returning the gloss as an allocated String. Read more
Source§

fn gloss_non_default(&self, flags: GlossFlags) -> String
where T: Default + PartialEq,

Glosses this value with a set of flags, returning the gloss as an allocated String. If flags does not include GlossFlags::SHOW_DEFAULTS and self is the default value of its type, an empty string is returned. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, This> TryAsGeneral<T> for This
where This: AsGeneral<T>, T: TryAsSpecific<This> + From<This>,

Source§

fn try_as_general(self) -> Option<T>

Converts self into a more general version, returning None if it isn’t possible.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.