Module rust_sc2::units::iter[][src]

Iterator adaptors for Units.

Structs

AlmostIdle

An iterator that filters units with no orders or almost finished orders.

AlmostUnused

An iterator that filters units with no orders or almost finished orders (this also handles buildings with reactor).

ExcludeType

An iterator that filters out units of given type.

ExcludeTypes

An iterator that filters out units of given types.

FindTags

An iterator that filters units with given tags.

Flying

An iterator that filters flying units.

Ground

An iterator that filters ground units.

Idle

An iterator that filters units with no orders.

InRange

An iterator that filters units close enough to attack given unit.

InRangeOf

An iterator that filters units in attack range of given unit.

InRealRange

An iterator that filters units close enough to attack given unit (this also handles range upgrades).

InRealRangeOf

An iterator that filters units in attack range of given unit (this also handles range upgrades).

IntoUnits

Owned iterator over Units.

NotReady

An iterator that filters units structures in-progress.

OfType

An iterator that filters units of given type.

OfTypes

An iterator that filters units of given types.

Ready

An iterator that filters ready units and structures.

Unused

An iterator that filters units with no orders (this also handles buildings with reactor).

Visible

An iterator that filters units units visible on current step.

Traits

UnitsIterator

Helper trait for iterators over units.