pub struct MoveToOptions<'a, F>where
    F: FnMut(RoomName, CostMatrix<'a>) -> SingleRoomCostResult<'a>,
{ /* private fields */ }

Implementations

Creates default SearchOptions

Enables caching of the calculated path. Default: 5 ticks

Whether to use the short serialized form. Default: True

Return an ERR_NOT_FOUND if no path is already cached. Default: False

Sets the style to trace the path used by this creep. See doc for default.

Sets whether the algorithm considers creeps as walkable. Default: False.

Sets whether the algorithm considers destructible structure as walkable. Default: False.

Sets cost callback - default |_, _| {}.

Sets maximum ops - default 2000.

Sets heuristic weight - default 1.2.

Sets whether the returned path should be passed to Room.serializePath.

Sets maximum rooms - default 16, max 16.

Sets plain cost - default 1.

Sets swamp cost - default 5.

Sets options related to FindOptions. Defaults to FindOptions default.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Casts this value as the target type, making the assumption that the types are correct. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.