Struct bwapi::position::Position[][src]

pub struct Position { /* fields omitted */ }

Indicates a position that is 1×1 pixel in size. This is the most precise position type.

Methods

impl Position
[src]

The distance between this point and position.

Trait Implementations

impl Eq for Position
[src]

impl PartialEq for Position
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Position
[src]

Formats the value using the given formatter. Read more

impl Point for Position
[src]

The scale of a Position. Each position corresponds to a 1x1 pixel area.

The length of this point from (0,0)

impl From<Position> for Position
[src]

Performs the conversion.

impl From<Position> for Position
[src]

Performs the conversion.

impl From<WalkPosition> for Position
[src]

Performs the conversion.

impl From<Position> for WalkPosition
[src]

Performs the conversion.

impl From<TilePosition> for Position
[src]

Performs the conversion.

impl From<Position> for TilePosition
[src]

Performs the conversion.

impl Add<Position> for Position
[src]

T op T

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<Position> for &'a Position
[src]

&T op T

The resulting type after applying the + operator.

Performs the + operation.

impl<'a> Add<&'a Position> for Position
[src]

T op &T

The resulting type after applying the + operator.

Performs the + operation.

impl<'a, 'b> Add<&'a Position> for &'b Position
[src]

&T op &T

The resulting type after applying the + operator.

Performs the + operation.

impl Sub<Position> for Position
[src]

T op T

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<Position> for &'a Position
[src]

&T op T

The resulting type after applying the - operator.

Performs the - operation.

impl<'a> Sub<&'a Position> for Position
[src]

T op &T

The resulting type after applying the - operator.

Performs the - operation.

impl<'a, 'b> Sub<&'a Position> for &'b Position
[src]

&T op &T

The resulting type after applying the - operator.

Performs the - operation.

impl Mul<isize> for Position
[src]

T op x

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<isize> for &'a Position
[src]

&T op x

The resulting type after applying the * operator.

Performs the * operation.

impl<'a> Mul<&'a isize> for Position
[src]

T op &x

The resulting type after applying the * operator.

Performs the * operation.

impl<'a, 'b> Mul<&'a isize> for &'b Position
[src]

&T op &x

The resulting type after applying the * operator.

Performs the * operation.

impl Div<isize> for Position
[src]

T op x

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div<isize> for &'a Position
[src]

&T op x

The resulting type after applying the / operator.

Performs the / operation.

impl<'a> Div<&'a isize> for Position
[src]

T op &x

The resulting type after applying the / operator.

Performs the / operation.

impl<'a, 'b> Div<&'a isize> for &'b Position
[src]

&T op &x

The resulting type after applying the / operator.

Performs the / operation.

Auto Trait Implementations

impl Send for Position

impl Sync for Position