[][src]Trait screeps::traits::FromExpectedType

pub trait FromExpectedType<T>: Sized {
    fn from_expected_type(v: T) -> Result<Self, ConversionError>;
}

Required methods

fn from_expected_type(v: T) -> Result<Self, ConversionError>

Loading content...

Implementations on Foreign Types

impl<T> FromExpectedType<Value> for Option<T> where
    T: FromExpectedType<Reference>, 
[src]

impl<T> FromExpectedType<Value> for Vec<T> where
    T: FromExpectedType<Reference>, 
[src]

Loading content...

Implementors

impl FromExpectedType<Reference> for Structure[src]

impl FromExpectedType<Reference> for ConstructionSite[src]

impl FromExpectedType<Reference> for Creep[src]

impl FromExpectedType<Reference> for Flag[src]

impl FromExpectedType<Reference> for Mineral[src]

impl FromExpectedType<Reference> for Nuke[src]

impl FromExpectedType<Reference> for OwnedStructure[src]

impl FromExpectedType<Reference> for Resource[src]

impl FromExpectedType<Reference> for Room[src]

impl FromExpectedType<Reference> for RoomObject[src]

impl FromExpectedType<Reference> for RoomPosition[src]

impl FromExpectedType<Reference> for RoomTerrain[src]

impl FromExpectedType<Reference> for Source[src]

impl FromExpectedType<Reference> for StructureContainer[src]

impl FromExpectedType<Reference> for StructureController[src]

impl FromExpectedType<Reference> for StructureExtension[src]

impl FromExpectedType<Reference> for StructureExtractor[src]

impl FromExpectedType<Reference> for StructureKeeperLair[src]

impl FromExpectedType<Reference> for StructureLab[src]

impl FromExpectedType<Reference> for StructureLink[src]

impl FromExpectedType<Reference> for StructureNuker[src]

impl FromExpectedType<Reference> for StructureObserver[src]

impl FromExpectedType<Reference> for StructurePowerBank[src]

impl FromExpectedType<Reference> for StructurePowerSpawn[src]

impl FromExpectedType<Reference> for StructurePortal[src]

impl FromExpectedType<Reference> for StructureRampart[src]

impl FromExpectedType<Reference> for StructureRoad[src]

impl FromExpectedType<Reference> for StructureSpawn[src]

impl FromExpectedType<Reference> for Spawning[src]

impl FromExpectedType<Reference> for StructureStorage[src]

impl FromExpectedType<Reference> for StructureTerminal[src]

impl FromExpectedType<Reference> for StructureTower[src]

impl FromExpectedType<Reference> for StructureWall[src]

impl FromExpectedType<Reference> for Tombstone[src]

impl FromExpectedType<Reference> for PowerCreep[src]

impl<T> FromExpectedType<Value> for T where
    T: FromExpectedType<Reference>, 
[src]

impl<T> FromExpectedType<Array> for JsVec<T> where
    T: InstanceOf
[src]

impl<T> FromExpectedType<Reference> for JsVec<T> where
    T: InstanceOf
[src]

Loading content...