fn foo(x: fn(&T), y: &U)
fn foo
x / \ y
fn &
| |
& U
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(dead_code)] | |
use std::f32::INFINITY; | |
use std::mem::drop; | |
use std::sync::Arc; | |
use std::sync::mpsc::channel; | |
use std::thread; | |
struct Store { | |
name: String, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$1" == "" || "$2" == "" ]]; then | |
echo "Usage: $0 <crate> <version>" | |
echo "" | |
echo "e.g. $0 conrod 0.32.0" | |
exit 1 | |
fi | |
curl -L https://crates.io/api/v1/crates/$1/$2/download | tar zxf - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(dead_code)] | |
struct Tokenizer<'t>(&'t str); | |
struct ParserInput<'t>(Tokenizer<'t>); | |
struct Parser<'i: 't, 't> { | |
tokenizer: &'t mut ParserInput<'i>, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![allow(dead_code)] | |
struct Tokenizer<'t>(&'t str); | |
struct ParserInput<'t>(Tokenizer<'t>); | |
struct Parser<'i: 't, 't> { | |
tokenizer: &'t mut ParserInput<'i>, | |
} |