3 stable releases
1.1.1 | Dec 2, 2021 |
---|---|
1.0.1 | Jun 8, 2021 |
1.0.0 | May 28, 2021 |
#10 in #refer
3KB
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
}