[−][src]Struct rusty_screeps::data::Creep
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]
&self,
target: &T
) -> ReturnCode
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> IntoExpectedType<U> for T where
U: FromExpectedType<T>,
U: FromExpectedType<T>,