Struct mon_artist::grid::Grid
[−]
[src]
pub struct Grid { pub rows: Vec<Vec<Elem>>, pub width: u32, pub height: u32, pub attrs: Vec<(String, String)>, }
Fields
rows: Vec<Vec<Elem>>
width: u32
height: u32
attrs: Vec<(String, String)>
Methods
impl Grid
[src]
fn holds(&self, pt: Pt) -> bool
fn set(&mut self, pt: Pt, value: Elem)
fn mark_used(&mut self, pt: Pt)
impl Grid
[src]
impl Grid
[src]
fn match_id(&self, pt: Pt) -> Option<String>
fn clear_id(&mut self, (pt, id): &(Pt, String))
fn mark_id_as_used(&mut self, (pt, id): &(Pt, String))
impl Grid
[src]
impl Grid
[src]
fn remove_path(&mut self, p: &Path)
impl Grid
[src]
fn remove_text(&mut self, t: &Text)
impl Grid
[src]
fn into_scene(self, format: &Table, opts: Option<SceneOpts>) -> Scene
Trait Implementations
impl PartialEq for Grid
[src]
fn eq(&self, __arg_0: &Grid) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Grid) -> bool
This method tests for !=
.
impl Eq for Grid
[src]
impl Clone for Grid
[src]
fn clone(&self) -> Grid
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Grid
[src]
impl Hash for Grid
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Index<Pt> for Grid
[src]
type Output = Elem
The returned type after indexing
fn index(&self, pt: Pt) -> &Elem
The method for the indexing (container[index]
) operation
impl FromStr for Grid
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Grid, ParseError>
Parses a string s
to return a value of this type. Read more