var searchIndex = {}; searchIndex["vec2d"] = {"doc":"Vec2D is a very simple 2D container for storing rectangular data","items":[[3,"Coord","vec2d","2D coordinate",null,null],[12,"x","","X component",0,null],[12,"y","","Y component",0,null],[3,"Rect","","Rectangle defined by inclusive minimum and maximum coordinates",null,null],[3,"Size","","Rectangle dimensions",null,null],[12,"width","","Width of rectangle",1,null],[12,"height","","Height of rectangle",1,null],[3,"Vec2D","","Container for 2D data",null,null],[3,"RectIterMut","","Mutable iterator over a Vec2D",null,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"new","","Create a coordinate at (x, y)",0,{"inputs":[{"name":"usize"},{"name":"usize"}],"output":{"name":"coord"}}],[11,"width","","Calculate rectangle width",2,null],[11,"height","","Calculate rectangle height",2,null],[11,"size","","Calculate rectangle size",2,null],[11,"new","","Create a 2D size of (width, height)",1,{"inputs":[{"name":"usize"},{"name":"usize"}],"output":{"name":"size"}}],[11,"area","","width * height",1,null],[11,"contains_coord","","Return true if the coordinate fits within self's width and\nheight, false otherwise.",1,null],[11,"from_example","","Create a Vec2D with the given `size`. All elements are\ninitialized as copies of the `example` element.",3,{"inputs":[{"name":"size"},{"name":"elem"}],"output":{"name":"vec2d"}}],[11,"from_vec","","Create a Vec2D with the given `size`. The contents are set to\n`src`. None is returned if the `size` does not match the\nlength of `src`.",3,{"inputs":[{"name":"size"},{"name":"vec"}],"output":{"name":"option"}}],[11,"rect_iter_mut","","Create a mutable iterator over a rectangular region of the\nVec2D. None is returned if the given `rect` does not fit\nentirely within the Vec2D.",3,null],[11,"next","","",4,null],[11,"new","","Create a new Rect defined by inclusive minimum and maximum\ncoordinates. If min_coord is greater than max_coord on either\naxis then None is returned.",2,{"inputs":[{"name":"coord"},{"name":"coord"}],"output":{"name":"option"}}]],"paths":[[3,"Coord"],[3,"Size"],[3,"Rect"],[3,"Vec2D"],[3,"RectIterMut"]]}; initSearch(searchIndex);