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
use std::alloc::{GlobalAlloc, System, Layout}; | |
use std::sync::atomic::{AtomicIsize, Ordering}; | |
struct AllocationTracker { | |
mem: AtomicIsize | |
} | |
impl AllocationTracker { | |
const fn new() -> Self { | |
AllocationTracker { |
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
5da87b4de18456eead23ae3ab16a8d26 ./commoncrawl_10240.both | |
20db69984813a69e97c5d7fc4de6dcc9 ./commoncrawl_10240.all | |
6c4bc638e1cd757be7b19cca64a507a6 ./commoncrawl.ascii | |
7a98cf765251c47bda29924daa3cee78 ./data-web-snippets.tar.gz | |
5f13acc73540806180f260a1c3a10ebd ./commoncrawl_10240.non_ascii | |
cac07d752e129473c08021ac5ee21130 ./rlzap_dlcp_female | |
9164eeb0c8b694e499c43eef904bea56 ./news.gz | |
2adca0e60af3957c3879aad58c0bfba5 ./commoncrawl_null.ascii | |
2f04ea4ce678cabdc91974fea6bdb338 ./wiki-annot30.gz | |
c27275e1837b332043a0f1cf77cb5cfd ./wiki-disamb30.gz |
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
#![feature(specialization)] | |
use std::fmt::*; | |
trait Maybe<T: ?Sized> { | |
fn implements_this(&self) -> bool; | |
fn fmt(&self, &mut Formatter) -> Result; | |
} | |
macro_rules! impl_maybe { |
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
use std::mem; | |
use std::cell::Cell; | |
fn ref_as_cell<T: Copy>(t: &mut T) -> &Cell<T> { | |
unsafe { mem::transmute(t) } | |
} | |
fn slice_as_cell<T: Copy>(t: &mut [T]) -> &[Cell<T>] { | |
unsafe { mem::transmute(t) } | |
} |
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
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |
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
#![feature(specialization)] | |
macro_rules! debug_or { | |
($e:expr, $s:expr, $($a:expr),*) => { | |
$e.debug_or_else(|f| write!(f, $s, $($a),*)) | |
}; | |
($e:expr, $s:expr) => { | |
debug_or!($e, $s,) | |
} | |
} |
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
#![feature(unsize)] | |
#![feature(raw)] | |
#![feature(const_fn)] | |
#![feature(unique)] | |
use std::marker::{Unsize, PhantomData}; | |
use std::fmt::Display; | |
use std::raw::TraitObject; | |
use std::mem; | |
use std::ops::Deref; |
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
#![feature(unsize)] | |
#![feature(raw)] | |
#![feature(const_fn)] | |
use std::marker::{Unsize, PhantomData}; | |
use std::fmt::Display; | |
use std::fmt::Debug; | |
use std::raw::TraitObject; | |
use std::cell::Cell; | |
use std::mem; |
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
#![feature(unsize)] | |
#![feature(raw)] | |
#![feature(const_fn)] | |
use std::marker::{Unsize, PhantomData}; | |
use std::fmt::Display; | |
use std::fmt::Debug; | |
use std::raw::TraitObject; | |
use std::cell::Cell; | |
use std::mem; |
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
#![feature(unsize)] | |
#![feature(raw)] | |
#![feature(const_fn)] | |
use std::marker::{Unsize, PhantomData}; | |
use std::fmt::Display; | |
use std::fmt::Debug; | |
use std::raw::TraitObject; | |
use std::cell::Cell; | |
use std::mem; |
NewerOlder