This file contains 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
<!-- | |
This document intends to include all stops used by the DVB as of December 2015. | |
It was created by manually combining multiple DVB documents and improved by using a reverse engineered autocompletion API. | |
It is preformatted as PropertyList and can easily be handled as XML. | |
Consider this document as public domain, mentioning my name in your project would make me happy though. | |
Created by Richard Neitzke. | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
This file contains 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
fn main() { | |
let a = [1,2,3,4,5,6,7,8,9,0]; | |
let b = "hello world!"; | |
let slice_a = &a[6..]; // [7,8,9,0] | |
let slice_b = &b[6..11]; // "world" | |
let slice_c = &slice_b[..2]; // "wo" | |
println!("{:?}", a); println!("{:?}", slice_a); |
This file contains 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
#[derive(Debug)] | |
struct Pair(i32,i32); | |
fn eat(y:&mut Pair) { y.0 = 1; y.1 = 2} | |
//fn replace(y:&mut Pair) { y = Pair(1,2)} // no? why not? | |
fn replace(y:&mut Pair) { let Pair(x,z) = Pair(1,2); y.0 = x; y.1 = z} | |
fn main(){ | |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |