Skip to content

Instantly share code, notes, and snippets.

View IWANABETHATGUY's full-sized avatar
🎯
Focusing

IWANABETHATGUY

🎯
Focusing
View GitHub Profile

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:

@IWANABETHATGUY
IWANABETHATGUY / getAcfunbanana.py
Last active November 22, 2016 06:21
这是一个可以模拟acfuntv登录然后签到领取香蕉的简单脚本
#-*-coding:utf-8-*-
import requests
import time
from PIL import Image,ImageOps
from urllib import request
from bs4 import BeautifulSoup
import subprocess
import requests
import win32api
from datetime import datetime