diff options
| author | Leif Arne Storset <leifarne@storset.net> | 2015-07-25 18:18:47 +0200 |
|---|---|---|
| committer | Leif Arne Storset <leifarne@storset.net> | 2015-07-25 20:53:57 +0200 |
| commit | 7bec320e6e067b9886f66f8c5d75e4bfef633f52 (patch) | |
| tree | 85322e33c42e11143bfa089cb83f59e96dcf2899 /src/rustllvm/RustWrapper.cpp | |
| parent | 04badd6a973d2499731b49365a121dbc4c9c468e (diff) | |
| download | rust-7bec320e6e067b9886f66f8c5d75e4bfef633f52.tar.gz rust-7bec320e6e067b9886f66f8c5d75e4bfef633f52.zip | |
Default methods example: Show "(in)valid" case
Instead of bar/baz, use valid/invalid as default methods. This illustrates why you might want default methods, and shows that you can call other trait methods from a default method.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
