GitHub PushEvent at 2014-11-24 22:05:15
Repository: simplot.rs
Actor: japaric
Payload: {"shas":[["35c806b0ec6f96916a00229273bb928ef09ac25a","550518ab9d14bd32155907315f74849d7b5c2b36@gmail.com","refactor(lib): revamp the API using overloaded methods\n\nThis PR changes massively the API, but functionality is unchanged\n\n- The `Properties` structs have lost their inherent setter methods like\n  `font(\"Helvetica\")`, `linewidth(2.)`. The replacement is the overloaded `set`\n  method + newtype tuple structs. For example: `set(Font(\"Helvetica\"))` and\n  `set(LineWidth(2.))`\n- Inherent configuration methods like `axis(Axis::BottomX, |a| /* ... */)`,\n  `grid` and `key` have been removed in favor of the overloaded `configure`\n  method. The signatures remain the same for `Axis` and `Grid`. In the case of\n  `key()`, a `Key` unit struct has been added: `configure(Key, |k| /* ... */)`\n- `Figure`'s inherent plotting methods like `curve`, `error_bar`, etc have been\n  removed in favor of the overloaded `plot` method. The plotting data is now\n  passed using a struct [variant]. The configuration closure remains unchanged.\n- An `IntoIterator` trait has been added to the library. Functions that\n  previously accepted iterators now also accept slices. This trait will remove\n  in the future, when `IntoIterator` lands in stdlib.\n- There is now a `prelude` module that contains the most common used traits,\n  structs and enums. This module is meant to be glob imported in crates that\n  link to this library.\n- All functions now accept boxed or \"unboxed\" closures.\n\ncloses #13\ncloses #14\ncloses #15\ncloses #16\ncloses #17\ncloses #19\ncloses #22\n\n[breaking-change]","Jorge Aparicio",true]],"size":1,"ref":"refs/heads/api","head":"35c806b0ec6f96916a00229273bb928ef09ac25a"}