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
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; |
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
#![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); |