Struct pathfinder::Map[][src]

pub struct Map {
    pub image: Option<ImageBuffer<Rgba<u8>, Vec<u8>>>,
    pub add: (i16, i16),
    pub size: u32,
}

Fields

Methods

impl Map
[src]

Maps any struct that has implemented Draw, on to an ImageBuffer.

use pathfinder::*;
let nodes: Vec<Node> = vec!(
    Node::new("1", Coordinate::new(0,0)),
    Node::new("2", Coordinate::new(100,100))
);
// Add content to vectors.
let mut map = Map::new();
map = map.map(&nodes);

Trait Implementations

impl Clone for Map
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Map
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Map

impl Sync for Map