pub enum StructureObject {
Show 21 variants StructureContainer(StructureContainer), StructureController(StructureController), StructureExtension(StructureExtension), StructureExtractor(StructureExtractor), StructureFactory(StructureFactory), StructureInvaderCore(StructureInvaderCore), StructureKeeperLair(StructureKeeperLair), StructureLab(StructureLab), StructureLink(StructureLink), StructureNuker(StructureNuker), StructureObserver(StructureObserver), StructurePortal(StructurePortal), StructurePowerBank(StructurePowerBank), StructurePowerSpawn(StructurePowerSpawn), StructureRampart(StructureRampart), StructureRoad(StructureRoad), StructureSpawn(StructureSpawn), StructureStorage(StructureStorage), StructureTerminal(StructureTerminal), StructureTower(StructureTower), StructureWall(StructureWall),
}
Expand description

Enum used for converting a Structure into a typed object of its specific structure type.

Variants§

§

StructureContainer(StructureContainer)

§

StructureController(StructureController)

§

StructureExtension(StructureExtension)

§

StructureExtractor(StructureExtractor)

§

StructureFactory(StructureFactory)

§

StructureInvaderCore(StructureInvaderCore)

§

StructureKeeperLair(StructureKeeperLair)

§

StructureLab(StructureLab)

§

StructureNuker(StructureNuker)

§

StructureObserver(StructureObserver)

§

StructurePortal(StructurePortal)

§

StructurePowerBank(StructurePowerBank)

§

StructurePowerSpawn(StructurePowerSpawn)

§

StructureRampart(StructureRampart)

§

StructureRoad(StructureRoad)

§

StructureSpawn(StructureSpawn)

§

StructureStorage(StructureStorage)

§

StructureTerminal(StructureTerminal)

§

StructureTower(StructureTower)

§

StructureWall(StructureWall)

Implementations§

Trait Implementations§

source§

impl Clone for StructureObject

source§

fn clone(&self) -> StructureObject

Returns a copy 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 StructureObject

source§

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

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

impl From<JsValue> for StructureObject

source§

fn from(reference: JsValue) -> Self

Converts to this type from the input type.
source§

impl From<Structure> for StructureObject

source§

fn from(structure: Structure) -> Self

Converts to this type from the input type.
source§

impl From<StructureContainer> for StructureObject

source§

fn from(v: StructureContainer) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureController> for StructureObject

source§

fn from(v: StructureController) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureExtension> for StructureObject

source§

fn from(v: StructureExtension) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureExtractor> for StructureObject

source§

fn from(v: StructureExtractor) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureFactory> for StructureObject

source§

fn from(v: StructureFactory) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureInvaderCore> for StructureObject

source§

fn from(v: StructureInvaderCore) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureKeeperLair> for StructureObject

source§

fn from(v: StructureKeeperLair) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureLab> for StructureObject

source§

fn from(v: StructureLab) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureLink> for StructureObject

source§

fn from(v: StructureLink) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureNuker> for StructureObject

source§

fn from(v: StructureNuker) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureObserver> for StructureObject

source§

fn from(v: StructureObserver) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructurePortal> for StructureObject

source§

fn from(v: StructurePortal) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructurePowerBank> for StructureObject

source§

fn from(v: StructurePowerBank) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructurePowerSpawn> for StructureObject

source§

fn from(v: StructurePowerSpawn) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureRampart> for StructureObject

source§

fn from(v: StructureRampart) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureRoad> for StructureObject

source§

fn from(v: StructureRoad) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureSpawn> for StructureObject

source§

fn from(v: StructureSpawn) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureStorage> for StructureObject

source§

fn from(v: StructureStorage) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureTerminal> for StructureObject

source§

fn from(v: StructureTerminal) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureTower> for StructureObject

source§

fn from(v: StructureTower) -> StructureObject

Converts to this type from the input type.
source§

impl From<StructureWall> for StructureObject

source§

fn from(v: StructureWall) -> StructureObject

Converts to this type from the input type.
source§

impl HasPosition for StructureObject

source§

fn pos(&self) -> Position

Position of the object.

source§

impl JsCollectionFromValue for StructureObject

source§

fn from_value(val: JsValue) -> Self

source§

impl StructureProperties for StructureObject

source§

impl TryFrom<StructureObject> for OwnedStructureObject

§

type Error = OwnedStructureConversionError

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

fn try_from(structure: StructureObject) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<StructureObject> for StoreObject

§

type Error = StoreObjectConversionError

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

fn try_from(structure: StructureObject) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<StructureObject> for TransferableObject

§

type Error = TransferableObjectConversionError

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

fn try_from(structure: StructureObject) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryInto<StructureContainer> for StructureObject

§

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<StructureController> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureExtension> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureExtractor> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureFactory> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureInvaderCore> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureKeeperLair> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureLab> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureLink> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureNuker> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureObserver> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructurePortal> for StructureObject

§

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 StructureObject

§

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<StructurePowerSpawn> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureRampart> for StructureObject

§

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 StructureObject

§

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<StructureSpawn> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureStorage> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureTerminal> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureTower> for StructureObject

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<StructureWall> for StructureObject

§

type Error = &'static str

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

fn try_into( self ) -> Result<StructureWall, <Self as TryInto<StructureWall>>::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> ToOwned for T
where T: Clone,

§

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