Enum screeps::enums::TransferableObject
source · pub enum TransferableObject {
Show 13 variants
StructureExtension(StructureExtension),
Creep(Creep),
StructureContainer(StructureContainer),
StructureFactory(StructureFactory),
StructureLab(StructureLab),
StructureLink(StructureLink),
StructureNuker(StructureNuker),
StructureSpawn(StructureSpawn),
StructureStorage(StructureStorage),
StructureTower(StructureTower),
StructurePowerSpawn(StructurePowerSpawn),
StructureTerminal(StructureTerminal),
PowerCreep(PowerCreep),
}
Variants§
StructureExtension(StructureExtension)
Creep(Creep)
StructureContainer(StructureContainer)
StructureFactory(StructureFactory)
StructureLab(StructureLab)
StructureLink(StructureLink)
StructureNuker(StructureNuker)
StructureSpawn(StructureSpawn)
StructureStorage(StructureStorage)
StructureTower(StructureTower)
StructurePowerSpawn(StructurePowerSpawn)
StructureTerminal(StructureTerminal)
PowerCreep(PowerCreep)
Trait Implementations§
source§impl AsRef<RoomObject> for TransferableObject
impl AsRef<RoomObject> for TransferableObject
source§fn as_ref(&self) -> &RoomObject
fn as_ref(&self) -> &RoomObject
Converts this type into a shared reference of the (usually inferred) input type.
source§impl From<Creep> for TransferableObject
impl From<Creep> for TransferableObject
source§fn from(v: Creep) -> TransferableObject
fn from(v: Creep) -> TransferableObject
Converts to this type from the input type.
source§impl From<PowerCreep> for TransferableObject
impl From<PowerCreep> for TransferableObject
source§fn from(v: PowerCreep) -> TransferableObject
fn from(v: PowerCreep) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureContainer> for TransferableObject
impl From<StructureContainer> for TransferableObject
source§fn from(v: StructureContainer) -> TransferableObject
fn from(v: StructureContainer) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureExtension> for TransferableObject
impl From<StructureExtension> for TransferableObject
source§fn from(v: StructureExtension) -> TransferableObject
fn from(v: StructureExtension) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureFactory> for TransferableObject
impl From<StructureFactory> for TransferableObject
source§fn from(v: StructureFactory) -> TransferableObject
fn from(v: StructureFactory) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureLab> for TransferableObject
impl From<StructureLab> for TransferableObject
source§fn from(v: StructureLab) -> TransferableObject
fn from(v: StructureLab) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureLink> for TransferableObject
impl From<StructureLink> for TransferableObject
source§fn from(v: StructureLink) -> TransferableObject
fn from(v: StructureLink) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureNuker> for TransferableObject
impl From<StructureNuker> for TransferableObject
source§fn from(v: StructureNuker) -> TransferableObject
fn from(v: StructureNuker) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructurePowerSpawn> for TransferableObject
impl From<StructurePowerSpawn> for TransferableObject
source§fn from(v: StructurePowerSpawn) -> TransferableObject
fn from(v: StructurePowerSpawn) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureSpawn> for TransferableObject
impl From<StructureSpawn> for TransferableObject
source§fn from(v: StructureSpawn) -> TransferableObject
fn from(v: StructureSpawn) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureStorage> for TransferableObject
impl From<StructureStorage> for TransferableObject
source§fn from(v: StructureStorage) -> TransferableObject
fn from(v: StructureStorage) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureTerminal> for TransferableObject
impl From<StructureTerminal> for TransferableObject
source§fn from(v: StructureTerminal) -> TransferableObject
fn from(v: StructureTerminal) -> TransferableObject
Converts to this type from the input type.
source§impl From<StructureTower> for TransferableObject
impl From<StructureTower> for TransferableObject
source§fn from(v: StructureTower) -> TransferableObject
fn from(v: StructureTower) -> TransferableObject
Converts to this type from the input type.
source§impl TryFrom<StructureObject> for TransferableObject
impl TryFrom<StructureObject> for TransferableObject
§type Error = TransferableObjectConversionError
type Error = TransferableObjectConversionError
The type returned in the event of a conversion error.