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.
source§impl TryInto<Creep> for TransferableObject
impl TryInto<Creep> for TransferableObject
source§impl TryInto<PowerCreep> for TransferableObject
impl TryInto<PowerCreep> for TransferableObject
source§impl TryInto<StructureFactory> for TransferableObject
impl TryInto<StructureFactory> for TransferableObject
source§impl TryInto<StructureLab> for TransferableObject
impl TryInto<StructureLab> for TransferableObject
source§impl TryInto<StructureLink> for TransferableObject
impl TryInto<StructureLink> for TransferableObject
source§impl TryInto<StructureNuker> for TransferableObject
impl TryInto<StructureNuker> for TransferableObject
source§impl TryInto<StructureSpawn> for TransferableObject
impl TryInto<StructureSpawn> for TransferableObject
source§impl TryInto<StructureStorage> for TransferableObject
impl TryInto<StructureStorage> for TransferableObject
source§impl TryInto<StructureTower> for TransferableObject
impl TryInto<StructureTower> for TransferableObject
impl Transferable for TransferableObject
Auto Trait Implementations§
impl RefUnwindSafe for TransferableObject
impl !Send for TransferableObject
impl !Sync for TransferableObject
impl Unpin for TransferableObject
impl UnwindSafe for TransferableObject
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