[][src]Enum screeps_api::websocket::objects::CreepPartType

pub enum CreepPartType {
    Move,
    Work,
    Carry,
    Attack,
    Heal,
    RangedAttack,
    Tough,
    Claim,
}

A type of creep part.

Variants

Move

A move part - allows creeps to move, or move faster (max speed at 1 move part per other part).

Work

A work part - allows creeps to spend energy doing things, mine sources and minerals, and damage structures.

Carry

A carry part - allows creeps to carry energy and other resources.

Attack

An attack part - allows creeps to damage both other creeps, and structures.

Heal

A heal part - allows creeps to heal creeps (other and self).

RangedAttack

A ranged attack part - allows creeps to attack other creeps and structures from a small distance.

Tough

A tough part - a cheap part which has no additional functionality.

Claim

A claim part - a part which allows a creep to reserve or claim a room controller.

Trait Implementations

impl PartialEq<CreepPartType> for CreepPartType[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for CreepPartType[src]

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

Performs copy-assignment from source. Read more

impl PartialOrd<CreepPartType> for CreepPartType[src]

#[must_use] fn lt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use] fn le(&self, other: &Rhs) -> bool1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use] fn gt(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use] fn ge(&self, other: &Rhs) -> bool1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for CreepPartType[src]

impl Ord for CreepPartType[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

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

Restrict a value to a certain interval. Read more

impl Copy for CreepPartType[src]

impl Debug for CreepPartType[src]

impl Hash for CreepPartType[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for CreepPartType[src]

impl<'de> Deserialize<'de> for CreepPartType[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,