Skip to content

Instantly share code, notes, and snippets.

@krdln
krdln / playground.rs
Last active August 29, 2015 14:25 — forked from anonymous/playground.rs
Shared via Rust Playground
...
macro_rules! nada {
() => { unsafe { std::mem::uninitialized() } }
}
#[derive(Debug)]
struct Konnection {
hp : String,
@krdln
krdln / map_2d_iter_mut.rs
Created June 30, 2016 16:53 — forked from Cobrand/map_2d_iter_mut.rs
Trouble for creating an iterator over a 2d map : example file
#[allow(dead_code)]
// BASIC STRUCTURES
// ================
pub type Result<T> = ::std::result::Result<T,Error>;
#[derive(Debug,Copy,Clone,Eq,PartialEq)]
pub enum Reason {
NegativeMapLength,
OutOfRange,
UnknownReason