diff options
author | Adam Carpenter <53hornet@gmail.com> | 2019-03-27 15:32:37 -0400 |
---|---|---|
committer | Adam Carpenter <53hornet@gmail.com> | 2019-03-27 15:32:37 -0400 |
commit | 67cdcc2e12118becb823e20a40cc2687f2b8425a (patch) | |
tree | ed92c3234b89079e6d4cf36f5e80c5ffa79def48 /packages/my-project/src | |
parent | e25482fca375d318a39c3b54db396b0db6e0b263 (diff) | |
download | learning-rust-67cdcc2e12118becb823e20a40cc2687f2b8425a.tar.xz learning-rust-67cdcc2e12118becb823e20a40cc2687f2b8425a.zip |
Started Rust in Action MEAP.
Diffstat (limited to 'packages/my-project/src')
-rwxr-xr-x | packages/my-project/src/main.rs | 82 | ||||
-rwxr-xr-x | packages/my-project/src/sound.rs | 1 | ||||
-rwxr-xr-x | packages/my-project/src/sound/instrument.rs | 3 |
3 files changed, 0 insertions, 86 deletions
diff --git a/packages/my-project/src/main.rs b/packages/my-project/src/main.rs deleted file mode 100755 index 486ae46..0000000 --- a/packages/my-project/src/main.rs +++ /dev/null @@ -1,82 +0,0 @@ -mod sound; - -fn main() { - crate::sound::instrument::clarinet(); - sound::instrument::clarinet(); -} -//mod sound { -// pub mod instrument { -// pub mod woodwind { -// -// pub fn clarinet() { -// println!("clarinet"); -// } -// -// } -// -// pub mod string { -// -// pub fn guitar() { -// println!("guitar"); -// super::woodwind::clarinet(); -// } -// -// } -// -// } -// -// mod voice { -// } -// -//} -// -//mod performance_group { -// pub use crate::sound::instrument::woodwind; -// -// pub fn clarinet_trio() { -// woodwind::clarinet(); -// woodwind::clarinet(); -// woodwind::clarinet(); -// } -// -//} -// -//fn main() { -// performance_group::clarinet_trio(); -// performance_group::woodwind::clarinet(); -//} - -//mod plant { -// pub struct Vegetable { -// pub name: String, -// id: i32, -// } -// -// impl Vegetable { -// pub fn new(name: &str) -> Vegetable { -// Vegetable { -// name: String::from(name), -// id: 1, -// } -// } -// } -//} -// -//fn main() { -// let mut v = plant::Vegetable::new("squash"); -// v.name = String::from("butternut squash"); -// println!("{} are delicious", v.name); -// //println!("The id is: {}", v.id); -//} - -//mod menu { -// pub enum Appetizer { -// Soup, -// Salad, -// } -//} -// -//fn main() { -// let order1 = menu::Appetizer::Soup; -// let order2 = menu::Appetizer::Salad; -//} diff --git a/packages/my-project/src/sound.rs b/packages/my-project/src/sound.rs deleted file mode 100755 index 866ac56..0000000 --- a/packages/my-project/src/sound.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod instrument; diff --git a/packages/my-project/src/sound/instrument.rs b/packages/my-project/src/sound/instrument.rs deleted file mode 100755 index 727784e..0000000 --- a/packages/my-project/src/sound/instrument.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub fn clarinet() { - println!("clarinet"); -} |