Skip to content

Instantly share code, notes, and snippets.

View q.md
#[derive(Debug, Snafu)]
#[snafu(module)]
enum Error { Alpha }

By default, should that generate

mod error {
@shepmaster
shepmaster / playground.rs
Created Jan 19, 2020
Code shared from the Rust Playground
View playground.rs
// This code was saved by an automated test for the Rust Playground
@shepmaster
shepmaster / playground.rs
Created Jan 19, 2020
Code shared from the Rust Playground
View playground.rs
// This code was saved by an automated test for the Rust Playground
@shepmaster
shepmaster / playground.rs
Created Jan 18, 2020
Code shared from the Rust Playground
View playground.rs
// This code was saved by an automated test for the Rust Playground
@shepmaster
shepmaster / playground.rs
Created Jan 18, 2020
Code shared from the Rust Playground
View playground.rs
// This code was saved by an automated test for the Rust Playground
@shepmaster
shepmaster / playground.rs
Created Dec 19, 2019
Code shared from the Rust Playground
View playground.rs
// This code was saved by an automated test for the Rust Playground
@shepmaster
shepmaster / playground.rs
Created Dec 14, 2019
Code shared from the Rust Playground
View playground.rs
// This code was saved by an automated test for the Rust Playground
@shepmaster
shepmaster / playground.rs
Created Dec 13, 2019
Code shared from the Rust Playground
View playground.rs
// This code was saved by an automated test for the Rust Playground
View gist:7c0ed0a239ebc2969878df18fdea5539
{
"text": "`Twas brillig, and the slithy toves
Did gyre and gimble in the wabe:
All mimsy were the borogoves,
And the mome raths outgrabe.
\"Beware the Jabberwock, my son!
The jaws that bite, the claws that catch!
Beware the Jubjub bird, and shun
The frumious Bandersnatch!\"
@shepmaster
shepmaster / playground.rs
Created Aug 25, 2019
Code shared from the Rust Playground
View playground.rs
// This code was saved by an automated test for the Rust Playground