[][src]Function pathtracer::coordinate::from_list

pub fn from_list<T>(
    list: &[(i16, i16)],
    get: &dyn Fn(Coordinate, usize) -> T
) -> Vec<T>

Constructs a vector of generic structs from a given list convered to Coordinates.

See also

examples/city.rs