Struct calamine::Cell
[−]
[src]
pub struct Cell<T: CellType> { /* fields omitted */ }
A struct to hold cell position and value
Methods
impl<T: CellType> Cell<T>
[src]
pub fn new(position: (u32, u32), value: T) -> Cell<T>
[src]
Creates a new Cell
pub fn get_position(&self) -> (u32, u32)
[src]
Gets Cell
position
pub fn get_value(&self) -> &T
[src]
Gets Cell
value
Trait Implementations
impl<T: Debug + CellType> Debug for Cell<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more