From 9df866b411301652683cfc546fef561a006ea9b1 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 8 Sep 2021 23:11:02 +0530 Subject: Rust: Add Assembly Line --- rust/assembly-line/src/lib.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 rust/assembly-line/src/lib.rs (limited to 'rust/assembly-line/src') diff --git a/rust/assembly-line/src/lib.rs b/rust/assembly-line/src/lib.rs new file mode 100644 index 0000000..de29988 --- /dev/null +++ b/rust/assembly-line/src/lib.rs @@ -0,0 +1,11 @@ +// This stub file contains items which aren't used yet; feel free to remove this module attribute +// to enable stricter warnings. +#![allow(unused)] + +pub fn production_rate_per_hour(speed: u8) -> f64 { + unimplemented!("calculate hourly production rate at speed: {}", speed) +} + +pub fn working_items_per_minute(speed: u8) -> u32 { + unimplemented!("calculate the amount of working items at speed: {}", speed) +} -- cgit 1.4.1-2-gfad0