Struct screeps::objects::Source
[−]
[src]
pub struct Source(_);
Methods
impl Source
[src]
pub fn energy(&self) -> u32
[src]
pub fn energy_capacity(&self) -> u32
[src]
pub fn id(&self) -> String
[src]
pub fn ticks_to_regeneration(&self) -> u32
[src]
Trait Implementations
impl Clone for Source
[src]
fn clone(&self) -> Source
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl AsRef<Reference> for Source
[src]
impl From<Source> for Reference
[src]
impl TryFrom<Value> for Source
[src]
type Error = <Value as TryInto<Reference>>::Error
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Source, Self::Error>
[src]
Performs the conversion.