1
0
mirror of https://github.com/danog/strum.git synced 2024-11-27 04:24:37 +01:00
Commit Graph

10 Commits

Author SHA1 Message Date
Peter Glotfelty
b6e4e66157
Did a little bit of refactoring and added some docs around AsStaticStr (#28)
* Did a little bit of refactoring and added some docs around AsStaticStr

* Revving the version in the cargoo.toml

* Managing Cargo.toml is a bit tedious when deploying packages that depend on each other

* Updated Cargo.toml
2018-06-26 08:22:19 -07:00
らりお (YOSHIOKA Takuma)
3988beefb9 Add AsStaticRef trait and let derive(AsRefStr) implement it (#24)
`#[derive(AsRefStr)]` will implement `AsStaticRef<str>`, and it
enables us to get `&'static str` by `AsStaticRef::<str>::as_static()`.

This will solve #23.
2018-05-26 10:57:04 -07:00
Malte Thiesen
ae40df1383 Implement Clone trait for enum iterators. (#18) 2018-04-16 09:43:32 -07:00
Peter Glotfelty 🚀
f039c629e2 Implemented Display for enums and added exactsizeiter to enumiter 2018-03-10 13:06:17 -08:00
らりお (YOSHIOKA Takuma)
af58a6d403 Add derive(AsRefStr) implementation (#10)
Implements AsRef<str> as a non-allocating alternative to deriving ToString. Docs will come later
2017-08-23 19:18:23 -07:00
Peternator7
a82aaa1e0d Fixed a link in the readme 2017-04-15 19:01:58 -07:00
Peternator7
bb2a37e9b6 Refactored deriviations into different files and added a ToString implementation 2017-04-15 18:08:49 -07:00
Peter Glotfelty
9dcade9077 Added one more test file 2017-02-23 00:09:57 -08:00
Peter Glotfelty
1801a300d3 Fixed some documentation bugs 2017-02-15 21:16:16 -08:00
Peter Glotfelty
033a376130 Added more test cases and fixed a small bug in how EnumIter handles generics 2017-02-15 19:16:40 -08:00