Butcher
An easy way to interact with Cow
ed structs and enums.
Disclaimer
This crate is still in early steps of developpments. It should not be used in production.
Concept
This crate aims to allow allow simple destructuring (for struct
s), pattern
matching (for enum
s and struct
s) and iteration (for enum
s and struct
s
that implement it).
Destructuring
TODO
Pattern matching
See this gist.
Iteration
This crate provide a CowIter
type, which allows to write Cow
fiendly
iterators. See this example:
use borrow:Cow;
use CowIter;