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 /advanced/adv-types | |
parent | e25482fca375d318a39c3b54db396b0db6e0b263 (diff) | |
download | learning-rust-67cdcc2e12118becb823e20a40cc2687f2b8425a.tar.xz learning-rust-67cdcc2e12118becb823e20a40cc2687f2b8425a.zip |
Started Rust in Action MEAP.
Diffstat (limited to 'advanced/adv-types')
-rw-r--r-- | advanced/adv-types/Cargo.lock | 4 | ||||
-rw-r--r-- | advanced/adv-types/Cargo.toml | 7 | ||||
-rw-r--r-- | advanced/adv-types/src/main.rs | 41 |
3 files changed, 0 insertions, 52 deletions
diff --git a/advanced/adv-types/Cargo.lock b/advanced/adv-types/Cargo.lock deleted file mode 100644 index a7ad78b..0000000 --- a/advanced/adv-types/Cargo.lock +++ /dev/null @@ -1,4 +0,0 @@ -[[package]] -name = "adv-types" -version = "0.1.0" - diff --git a/advanced/adv-types/Cargo.toml b/advanced/adv-types/Cargo.toml deleted file mode 100644 index a3ca211..0000000 --- a/advanced/adv-types/Cargo.toml +++ /dev/null @@ -1,7 +0,0 @@ -[package] -name = "adv-types" -version = "0.1.0" -authors = ["Adam Carpenter <53hornet@gmail.com>"] -edition = "2018" - -[dependencies] diff --git a/advanced/adv-types/src/main.rs b/advanced/adv-types/src/main.rs deleted file mode 100644 index 60d42b2..0000000 --- a/advanced/adv-types/src/main.rs +++ /dev/null @@ -1,41 +0,0 @@ -//use std::io::Error; -//use std::fmt; - -//pub trait Write { -// -// fn write(&mut self, buf: &[u8]) -> Result<usize>; -// fn flush(&mut self) -> Result<(), Error>; -// -// fn write_all(&mut self, buf: &[u8]) -> Result<()>; -// fn write_fmt(&mut self, fmt: fmt::Arguments) -> Result<()>; -//} - -//fn main() { -// type Miles = i32; -// -// let x: i32 = 5; -// let y: Miles = 5; -// -// println!("x + y = {}", x + y); - - -//} - -//type Thunk = Box<dyn Fn() + Send + 'static>; -// -//let f: Thunk = Box::new(|| println!("hi")); -// -//fn takes_long_type(f: Thunk) { -//} -// -//fn returns_long_type() -> Thunk { -//} - -fn main() { - print!("forever"); - - loop { - print!("and ever "); - } -} - |