#[repr(u8)]pub enum BuffStackType {
StackingConditionalLoss = 0,
Queue = 1,
CappedDuration = 2,
Regeneration = 3,
Stacking = 4,
Force = 5,
}
Expand description
Buff stacking behavior.
Occurs in BuffInfo
.
Variants§
StackingConditionalLoss = 0
Stacking in intensity with conditional loss.
Similar to BuffStackType::Stacking
.
Queue = 1
Stacking in duration with queue.
CappedDuration = 2
Stacking in duration with cap.
Regeneration = 3
Regeneration-like stacking in duration.
Stacking = 4
Stacking in intensity.
Force = 5
No stacking. Force override.
Trait Implementations§
Source§impl Clone for BuffStackType
impl Clone for BuffStackType
Source§fn clone(&self) -> BuffStackType
fn clone(&self) -> BuffStackType
Returns a copy 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 BuffStackType
impl Debug for BuffStackType
Source§impl<'de> Deserialize<'de> for BuffStackType
impl<'de> Deserialize<'de> for BuffStackType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuffStackType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuffStackType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BuffStackType
impl Hash for BuffStackType
Source§impl Ord for BuffStackType
impl Ord for BuffStackType
Source§fn cmp(&self, other: &BuffStackType) -> Ordering
fn cmp(&self, other: &BuffStackType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BuffStackType
impl PartialEq for BuffStackType
Source§impl PartialOrd for BuffStackType
impl PartialOrd for BuffStackType
Source§impl Serialize for BuffStackType
impl Serialize for BuffStackType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<u8> for BuffStackType
impl TryFrom<u8> for BuffStackType
Source§type Error = TryFromPrimitiveError<BuffStackType>
type Error = TryFromPrimitiveError<BuffStackType>
The type returned in the event of a conversion error.
Source§fn try_from(
number: u8,
) -> Result<BuffStackType, TryFromPrimitiveError<BuffStackType>>
fn try_from( number: u8, ) -> Result<BuffStackType, TryFromPrimitiveError<BuffStackType>>
Performs the conversion.
Source§impl TryFromPrimitive for BuffStackType
impl TryFromPrimitive for BuffStackType
const NAME: &'static str = "BuffStackType"
type Primitive = u8
type Error = TryFromPrimitiveError<BuffStackType>
fn try_from_primitive( number: <BuffStackType as TryFromPrimitive>::Primitive, ) -> Result<BuffStackType, TryFromPrimitiveError<BuffStackType>>
impl Copy for BuffStackType
impl Eq for BuffStackType
impl StructuralPartialEq for BuffStackType
Auto Trait Implementations§
impl Freeze for BuffStackType
impl RefUnwindSafe for BuffStackType
impl Send for BuffStackType
impl Sync for BuffStackType
impl Unpin for BuffStackType
impl UnwindSafe for BuffStackType
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