Skip to content

Instantly share code, notes, and snippets.

About variadics in Rust

This is an analysis of how variadic generics could be added to Rust. It's not a proposal so much as a summary of existing work, and a toolbox for creating an eventual proposal.

Introduction

Variadic generics (aka variadic templates, or variadic tuples), are an often-requested feature that would enable traits, functions and data structures to be generic over a variable number of types.

To give a quick example, a Rust function with variadic generics might look like this:

@s3rgeym
s3rgeym / Arch-Install-SED-Luks-Btrfs.md
Last active April 6, 2024 11:59
Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

image

Вся суть харча™ (на самом деле все далеко не так...)

Установка Arch Linux с шифрованием всего диска либо раздела и Btrfs

ZSH Tips by ZZapper

zzappers Tips Home

Updated : 01Aug16 N Marks New C Corrected/Changed

> zsh -f   # start a "clean" version of zsh (without your startup files)
print $ZSH_VERSION
[Tips Home](http://www.zzapper.co.uk/)
@willurd
willurd / web-servers.md
Last active April 25, 2024 01:54
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000