Crates.io | new_york |
lib.rs | new_york |
version | 0.1.1 |
source | src |
created_at | 2022-05-24 14:43:49.403391 |
updated_at | 2022-05-24 14:45:51.436215 |
description | Home of the dollar slice. |
homepage | |
repository | |
max_upload_size | |
id | 592837 |
size | 1,655 |
new_york
Home the dollar slice!
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, &[]);
}