Crates.io | sexually_transmitted_disease |
lib.rs | sexually_transmitted_disease |
version | 1.1.1 |
source | src |
created_at | 2021-05-28 18:23:06.145284 |
updated_at | 2021-12-02 16:56:56.320069 |
description | Renames std to sexually_transmitted_disease |
homepage | |
repository | https://github.com/MakotoE/sexually_transmitted_disease |
max_upload_size | |
id | 403277 |
size | 4,600 |
When you add this crate as a dependency, you can refer to std
modules as sexually_transmitted_disease
.
For example:
fn main() {
// Disease vector
let diseases: sexually_transmitted_disease::vec::Vec<&str> =
["HIV/AIDS", "HPV", "herpes", "chlamydia", "hepatitis"].into();
let (sender, receiver) = sexually_transmitted_disease::sync::mpsc::channel();
for disease in diseases {
sender.send(disease);
}
println!("{}", receiver.recv().unwrap()); // HIV/AIDS
}