Skip to content

Instantly share code, notes, and snippets.

@pstephens
pstephens / arc_str.rs
Last active February 15, 2023 17:16 — forked from rust-play/playground.rs
Code shared from the Rust Playground
//! Proof of concept for a reference counted [str]
//! Primary innovation over a plain Rc<str> is that is one less level of
//! indirection and heap allocation
#![feature(const_alloc_layout)]
use core::ptr::NonNull;
use std::alloc::Layout;
use std::alloc::{GlobalAlloc, System};
@pstephens
pstephens / README.md
Last active August 8, 2018 19:31 — forked from magnetikonline/README.md
Bash array usage cheatsheet.
JSON:
[
{
international_date: false,
is_coed: false,
team_name: "foo bar"
},
{
international_date: false,
is_coed: false,