Struct screeps::objects::Resource
[−]
[src]
pub struct Resource(_);
Methods
impl Resource
[src]
pub fn resource_type(&self) -> ResourceType
[src]
impl Resource
[src]
Trait Implementations
impl Clone for Resource
[src]
fn clone(&self) -> Resource
[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 Resource
[src]
impl From<Resource> for Reference
[src]
impl TryFrom<Value> for Resource
[src]
type Error = <Value as TryInto<Reference>>::Error
The type returned in the event of a conversion error.
fn try_from(v: Value) -> Result<Resource, Self::Error>
[src]
Performs the conversion.