Skip to content

Instantly share code, notes, and snippets.

@Cerber-Ursi
Cerber-Ursi / playground.rs
Last active Sep 22, 2019 — forked from rust-play/playground.rs
Code shared from the Rust Playground
View playground.rs
#![allow(dead_code)]
#![allow(unused_variables)]
mod naive {
fn foo(x: &[i32], y: i32) -> Option<usize> {
super::real_impl::find(x, y)
}
#[test]
@Cerber-Ursi
Cerber-Ursi / playground.rs
Created Oct 3, 2019 — forked from rust-play/playground.rs
Code shared from the Rust Playground
View playground.rs
macro_rules! commands {
(
($cmd_enum:ident, $results_mod:ident, $ret_enum:ident),
$(
$cmd:ident -> $(
$res:ident $(
($($inner:ty),+)
)?
)|+
),+