Struct pathfinder::Node
[−]
[src]
pub struct Node<T: Shape> { pub hash: u64, pub geo: Coordinate, pub color: Rgba<u8>, pub radius: Option<u32>, // some fields omitted }
A positioned object that can be drawn on an image::ImageBuffer.
Fields
hash: u64
geo: Coordinate
color: Rgba<u8>
radius: Option<u32>
Methods
impl<T: Shape> Node<T>
[src]
pub fn new(name: &str, geo: Coordinate) -> Node<T>
[src]
Constructs a Node struct.
impl<T: Shape> Node<T>
[src]
pub fn draw(
&self,
image: &mut ImageBuffer<Rgba<u8>, Vec<u8>>,
x_offset: u32,
y_offset: u32,
size: u32
)
[src]
&self,
image: &mut ImageBuffer<Rgba<u8>, Vec<u8>>,
x_offset: u32,
y_offset: u32,
size: u32
)
Draws a node on an ImageBuffer.
Trait Implementations
impl<T: Shape> PartialEq for Node<T>
[src]
fn eq(&self, other: &Node<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.