Skip to content

Instantly share code, notes, and snippets.

@hroi
hroi / playground.rs
Created July 2, 2019 20:28 — forked from rust-play/playground.rs
Code shared from the Rust Playground
pub struct Sentences<'a> {
pub inner: &'a str,
}
pub fn sentences(input: &str) -> Sentences {
Sentences { inner: input }
}
const TOK_WHITESPACE: u32 = 1;
const TOK_PERIOD: u32 = 1 << 1;
const TOK_UPPERCASE: u32 = 1 << 2;
@hroi
hroi / playground.rs
Created February 15, 2016 00:56 — forked from anonymous/playground.rs
Shared via Rust Playground
#![allow(dead_code)]
use std::result;
use std::net::Ipv4Addr;
use std::fmt;
const BGP_MARKER: [u8; 16] = [0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,];
#[derive(Debug)]
struct AutNum(u32);