[][src]Module snake::types

Types for the crate

Structs

CoordinateVector

A CoordinateVector represents a Euclidean vector in 2D space. It is mainly used for directions and positions. For example, the travel function has a CoordinateVector input for the direction, and the head_touching_object function has a CoordinateVector input for the position of the object.

Type Definitions

Snake

A snake object. This is currently a type alias, but that is likely to change in the future.