2 releases

0.1.1 May 24, 2022
0.1.0 May 24, 2022

#2873 in Rust patterns

37 downloads per month

MIT/Apache

2KB

new_york

Home the dollar slice!

Example

use new_york::*;

// Choose your toppings.
#[derive(Debug, PartialEq, Eq)]
struct Pepperoni;

fn main() {
	// Get a slice for just one dollar!
	let dollar = Dollar;
	let slice: &[Pepperoni] = get_slice(dollar);
	assert_eq!(slice, &[]);
}

lib.rs:

New York City, home of the dollar slice.

No runtime deps