pub trait GraphData<T> { // Required methods fn data(&self) -> Option<&Box<T>>; fn data_mut(&mut self) -> Option<&mut Box<T>>; }
A Graph item that can hold generic data will implement this.
Returns a borrowed refference to the data.
Returns a borrowed mutable refference to the data.