[][src]Struct rusty_screeps::data::Creep

pub struct Creep { /* fields omitted */ }

Methods

impl Creep[src]

pub fn from(creep: Creep) -> Creep[src]

pub fn refresh(&mut self, creep: Creep)[src]

pub fn name(&self) -> &str[src]

pub fn spawning(&self) -> bool[src]

pub fn memory(&self) -> MemoryReference[src]

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

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

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

pub fn pos(&self) -> &RoomPosition[src]

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

pub fn move_to<T: ?Sized + HasPosition>(&self, target: &T) -> ReturnCode[src]

pub fn harvest(&self, source: &Source) -> ReturnCode[src]

pub fn build(&self, construction_site: &ConstructionSite) -> ReturnCode[src]

pub fn upgrade_controller(&self, controller: &StructureController) -> ReturnCode[src]

pub fn transfer_all_energy<T: ?Sized + Transferable>(
    &self,
    target: &T
) -> ReturnCode
[src]

pub fn job(&self) -> &Job[src]

Auto Trait Implementations

impl Send for Creep

impl Unpin for Creep

impl Sync for Creep

impl UnwindSafe for Creep

impl RefUnwindSafe for Creep

Blanket Implementations

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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> IntoExpectedType<U> for T where
    U: FromExpectedType<T>,