pub struct FindOptions<'a, F>where
    F: Fn(String, CostMatrix<'_>) -> Option<CostMatrix<'a>>,
{ /* private fields */ }

Implementations

Creates default SearchOptions

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.

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.