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]
impl<T: CellType> Cell<T>
pub fn new(position: (u32, u32), value: T) -> Cell<T>
[src]
pub fn new(position: (u32, u32), value: T) -> Cell<T>
Creates a new Cell
pub fn get_position(&self) -> (u32, u32)
[src]
pub fn get_position(&self) -> (u32, u32)
Gets Cell
position
pub fn get_value(&self) -> &T
[src]
pub fn get_value(&self) -> &T
Gets Cell
value
Trait Implementations
impl<T: Debug + CellType> Debug for Cell<T>
[src]
impl<T: Debug + CellType> Debug for Cell<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone + CellType> Clone for Cell<T>
[src]
impl<T: Clone + CellType> Clone for Cell<T>