[][src]Struct screeps::objects::Ruin

pub struct Ruin(_);

Implementations

impl Ruin[src]

pub fn destroy_time(&self) -> u32[src]

impl Ruin[src]

pub fn structure_info(&self) -> (StructureType, RawObjectId, Option<String>)[src]

Ruin.structure doesn't return complete object data, so instead of implementing that directly, this function exposes relevant properties of the ruin's structure directly in a tuple of the type, id, and owner

Trait Implementations

impl AsRef<Reference> for Ruin[src]

impl CanDecay for Ruin[src]

impl Clone for Ruin[src]

impl Eq for Ruin[src]

impl From<Ruin> for Reference[src]

impl FromExpectedType<Reference> for Ruin[src]

impl HasId for Ruin[src]

impl HasStore for Ruin[src]

impl InstanceOf for Ruin[src]

impl JsSerialize for Ruin[src]

impl JsSerializeOwned for Ruin[src]

impl<'_r> JsSerializeOwned for &'_r Ruin[src]

impl PartialEq<Ruin> for Ruin[src]

impl ReferenceType for Ruin[src]

impl RoomObjectProperties for Ruin[src]

impl<'_r> TryFrom<&'_r Reference> for Ruin[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for Ruin[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Reference> for Ruin[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Ruin> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Value> for Ruin[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl Withdrawable for Ruin[src]

Auto Trait Implementations

impl RefUnwindSafe for Ruin

impl Send for Ruin

impl Sync for Ruin

impl Unpin for Ruin

impl UnwindSafe for Ruin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

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

impl<T> HasPosition for T where
    T: RoomObjectProperties
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoExpectedType<U> for T where
    U: FromExpectedType<T>, 
[src]

impl<T> SizedRoomObject for T where
    T: Into<Reference> + ReferenceType<Error = ConversionError, Error = ConversionError> + TryFrom<Value> + TryFrom<Reference> + RoomObjectProperties
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.