Skip to content

Instantly share code, notes, and snippets.

Loïc Girault lgirault

View GitHub Profile
ChronosWS /
Last active Mar 12, 2020
Rust References, Lifetimes, and Futures

Rust References, Lifetimes and Futures

This Gist will examine how lifetimes and futures interact in Rust.

The basics - a refresher

Consider the following program, and in particular, the lifetime of the numbers vector in main():

fn do_stuff(numbers: Vec<u32>) -> () {
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
You can’t perform that action at this time.