[][src]Struct screeps::objects::Source

pub struct Source(_);

Methods

impl Source[src]

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

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

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

Trait Implementations

impl HasId for Source[src]

fn id(&self) -> String[src]

impl RoomObjectProperties for Source[src]

fn room(&self) -> Room[src]

impl FromExpectedType<Reference> for Source[src]

impl Clone for Source[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl From<Source> for Reference[src]

impl Eq for Source[src]

impl PartialEq<Source> for Source[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl AsRef<Reference> for Source[src]

impl TryFrom<Source> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for Source[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for Source[src]

type Error = ConversionError

The type returned in the event of a conversion error.

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

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for Source[src]

impl JsSerialize for Source[src]

impl ReferenceType for Source[src]

impl JsSerializeOwned for Source[src]

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

Auto Trait Implementations

impl Send for Source

impl Sync for Source

Blanket Implementations

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

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

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

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

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.