pub enum DecayingObject {
    Deposit(Deposit),
    Ruin(Ruin),
    ScoreContainer(ScoreContainer),
    StructureContainer(StructureContainer),
    StructurePortal(StructurePortal),
    StructurePowerBank(StructurePowerBank),
    StructureRampart(StructureRampart),
    StructureRoad(StructureRoad),
    SymbolContainer(SymbolContainer),
    Tombstone(Tombstone),
}

Variants§

§

Deposit(Deposit)

§

Ruin(Ruin)

§

ScoreContainer(ScoreContainer)

Available on crate feature seasonal-season-1 only.
§

StructureContainer(StructureContainer)

§

StructurePortal(StructurePortal)

§

StructurePowerBank(StructurePowerBank)

§

StructureRampart(StructureRampart)

§

StructureRoad(StructureRoad)

§

SymbolContainer(SymbolContainer)

Available on crate feature seasonal-season-2 only.
§

Tombstone(Tombstone)

Trait Implementations§

source§

impl CanDecay for DecayingObject

source§

fn ticks_to_decay(&self) -> u32

The number of ticks until the object will decay, losing hits.

source§

impl From<Deposit> for DecayingObject

source§

fn from(v: Deposit) -> DecayingObject

Converts to this type from the input type.
source§

impl From<Ruin> for DecayingObject

source§

fn from(v: Ruin) -> DecayingObject

Converts to this type from the input type.
source§

impl From<ScoreContainer> for DecayingObject

Available on crate feature seasonal-season-1 only.
source§

fn from(v: ScoreContainer) -> DecayingObject

Converts to this type from the input type.
source§

impl From<StructureContainer> for DecayingObject

source§

fn from(v: StructureContainer) -> DecayingObject

Converts to this type from the input type.
source§

impl From<StructurePortal> for DecayingObject

source§

fn from(v: StructurePortal) -> DecayingObject

Converts to this type from the input type.
source§

impl From<StructurePowerBank> for DecayingObject

source§

fn from(v: StructurePowerBank) -> DecayingObject

Converts to this type from the input type.
source§

impl From<StructureRampart> for DecayingObject

source§

fn from(v: StructureRampart) -> DecayingObject

Converts to this type from the input type.
source§

impl From<StructureRoad> for DecayingObject

source§

fn from(v: StructureRoad) -> DecayingObject

Converts to this type from the input type.
source§

impl From<SymbolContainer> for DecayingObject

Available on crate feature seasonal-season-2 only.
source§

fn from(v: SymbolContainer) -> DecayingObject

Converts to this type from the input type.
source§

impl From<Tombstone> for DecayingObject

source§

fn from(v: Tombstone) -> DecayingObject

Converts to this type from the input type.
source§

impl TryInto<Deposit> for DecayingObject

§

type Error = &'static str

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

fn try_into(self) -> Result<Deposit, <Self as TryInto<Deposit>>::Error>

Performs the conversion.
source§

impl TryInto<Ruin> for DecayingObject

§

type Error = &'static str

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

fn try_into(self) -> Result<Ruin, <Self as TryInto<Ruin>>::Error>

Performs the conversion.
source§

impl TryInto<ScoreContainer> for DecayingObject

Available on crate feature seasonal-season-1 only.
§

type Error = &'static str

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

fn try_into( self ) -> Result<ScoreContainer, <Self as TryInto<ScoreContainer>>::Error>

Performs the conversion.
source§

impl TryInto<StructureContainer> for DecayingObject

§

type Error = &'static str

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

fn try_into( self ) -> Result<StructureContainer, <Self as TryInto<StructureContainer>>::Error>

Performs the conversion.
source§

impl TryInto<StructurePortal> for DecayingObject

§

type Error = &'static str

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

fn try_into( self ) -> Result<StructurePortal, <Self as TryInto<StructurePortal>>::Error>

Performs the conversion.
source§

impl TryInto<StructurePowerBank> for DecayingObject

§

type Error = &'static str

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

fn try_into( self ) -> Result<StructurePowerBank, <Self as TryInto<StructurePowerBank>>::Error>

Performs the conversion.
source§

impl TryInto<StructureRampart> for DecayingObject

§

type Error = &'static str

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

fn try_into( self ) -> Result<StructureRampart, <Self as TryInto<StructureRampart>>::Error>

Performs the conversion.
source§

impl TryInto<StructureRoad> for DecayingObject

§

type Error = &'static str

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

fn try_into( self ) -> Result<StructureRoad, <Self as TryInto<StructureRoad>>::Error>

Performs the conversion.
source§

impl TryInto<SymbolContainer> for DecayingObject

Available on crate feature seasonal-season-2 only.
§

type Error = &'static str

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

fn try_into( self ) -> Result<SymbolContainer, <Self as TryInto<SymbolContainer>>::Error>

Performs the conversion.
source§

impl TryInto<Tombstone> for DecayingObject

§

type Error = &'static str

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

fn try_into(self) -> Result<Tombstone, <Self as TryInto<Tombstone>>::Error>

Performs the conversion.

Auto Trait Implementations§

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.