[][src]Struct liriodendron::log::tools::grids::cell::Cell

pub struct Cell {
    grid_id: usize,
    grid: Grid,
    x: u16,
    y: u16,
}

Represents one cell of a grid

Fields

grid_id: usizegrid: Gridx: u16y: u16

Methods

impl Cell[src]

pub fn new((grid_id, grid, tool): (usize, Grid, CellTool)) -> (Cell, Pixel)[src]

pub fn set_grid_id(&self, new_grid_id: usize) -> Cell[src]

Returns a new Cell object with a new grid id and other fields cell caller

pub fn get_grid_id(&self) -> usize[src]

pub fn get_grid(&self) -> Grid[src]

pub fn get_x(&self) -> u16[src]

pub fn get_y(&self) -> u16[src]

Trait Implementations

impl Clone for Cell[src]

impl Copy for Cell[src]

impl Debug for Cell[src]

impl Eq for Cell[src]

impl Hash for Cell[src]

impl PartialEq<Cell> for Cell[src]

impl StructuralEq for Cell[src]

impl StructuralPartialEq for Cell[src]

Auto Trait Implementations

impl RefUnwindSafe for Cell

impl Send for Cell

impl Sync for Cell

impl Unpin for Cell

impl UnwindSafe for Cell

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SetParameter for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,