summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-01-22 22:54:24 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-01-22 22:54:24 +0000
commit6d1ff7cc76f36ae10eb26dc29c5d2b7101192012 (patch)
treeb4ce4a57eed05c9359a69c947fe4df03e97e300c
parent2117a095a12ed7f97036767ed59a17c5573f9a7a (diff)
downloadrust-talk-6d1ff7cc76f36ae10eb26dc29c5d2b7101192012.tar.bz2
Updates
-rw-r--r--.gitignore1
-rw-r--r--presentation.md66
2 files changed, 34 insertions, 33 deletions
diff --git a/.gitignore b/.gitignore
index cb78bc0..6947a33 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/.tmp
*~
+dist
diff --git a/presentation.md b/presentation.md
index ae1ba38..ca353da 100644
--- a/presentation.md
+++ b/presentation.md
@@ -55,7 +55,7 @@ fn main() {
title: A systems programming language?
-# A 'systems programming' language?
+## A 'systems programming' language?
???
@@ -198,7 +198,7 @@ title: Fast, Safe, Easy - Pick Three
---
-# Some useful things to know about Rust
+## Some useful things to know about Rust
???
@@ -461,7 +461,7 @@ Rust simply won't let us do this.
---
-# Passing ownership
+## Passing ownership
```rust
fn take(mut foo: Vec<String>) {
@@ -527,7 +527,7 @@ it to do, and it wasn't crazy.
---
-# Further thinking on this topic
+## Further thinking on this topic
- Ownership
@@ -582,7 +582,7 @@ it to do, and it wasn't crazy.
---
-# Data types in Rust
+## Data types in Rust
???
@@ -662,7 +662,7 @@ it to do, and it wasn't crazy.
---
-# Structs
+## Structs
```rust
struct Person {
@@ -682,7 +682,7 @@ struct Person {
---
-# Implementation
+## Implementation
```rust
impl Person {
@@ -704,7 +704,7 @@ impl Person {
count: false
-# Implementation
+## Implementation
```rust
*impl Person {
@@ -727,7 +727,7 @@ count: false
count: false
-# Implementation
+## Implementation
```rust
impl Person {
@@ -752,7 +752,7 @@ impl Person {
count: false
-# Implementation
+## Implementation
```rust
impl Person {
@@ -775,7 +775,7 @@ impl Person {
---
-# Enums
+## Enums
```rust
enum ConnectTarget {
@@ -797,7 +797,7 @@ enum ConnectTarget {
count: false
-# Enums
+## Enums
```rust
enum ConnectTarget {
@@ -819,7 +819,7 @@ enum ConnectTarget {
count: false
-# Enums
+## Enums
```rust
enum ConnectTarget {
@@ -842,7 +842,7 @@ enum ConnectTarget {
count: false
-# Enums
+## Enums
```rust
enum ConnectTarget {
@@ -864,7 +864,7 @@ enum ConnectTarget {
---
-# Parametric types
+## Parametric types
```rust
enum Option<T> {
@@ -898,7 +898,7 @@ enum Option<T> {
---
-# Errors
+## Errors
???
@@ -928,7 +928,7 @@ enum Option<T> {
---
-# `panic!()` (via `unwrap()`)
+## `panic!()` (via `unwrap()`)
```rust
fn say_age_in_days(input: &str) {
@@ -948,7 +948,7 @@ fn say_age_in_days(input: &str) {
---
-# Dealing with the result
+## Dealing with the result
```rust
fn say_age_in_days(input: &str) {
@@ -966,7 +966,7 @@ fn say_age_in_days(input: &str) {
---
-# Pass it on
+## Pass it on
```rust
fn say_age_in_days(input: &str) -> Result<(), Error> {
@@ -989,7 +989,7 @@ fn say_age_in_days(input: &str) -> Result<(), Error> {
---
-# Ergonomic passing on of an error
+## Ergonomic passing on of an error
```rust
fn say_age_in_days(input: &str) -> Result<(), Error> {
@@ -1009,7 +1009,7 @@ fn say_age_in_days(input: &str) -> Result<(), Error> {
---
-# Rust is not object oriented
+## Rust is not object oriented
- Structs? yes
- Enums? yes
@@ -1027,7 +1027,7 @@ fn say_age_in_days(input: &str) -> Result<(), Error> {
---
-# Traits
+## Traits
```rust
trait Edible {
@@ -1061,7 +1061,7 @@ impl Edible for Soap {
---
-# Traits
+## Traits
```rust
pub trait Add<RHS = Self> {
@@ -1087,7 +1087,7 @@ foo = (bar as Add<RHS=typeof(baz)).add(baz);
---
-# Traits
+## Traits
```rust
for foo in bar {
@@ -1101,7 +1101,7 @@ for foo in bar {
---
-# Traits
+## Traits
```rust
for foo in (bar as IntoIterator).into_iter() {
@@ -1157,7 +1157,7 @@ for foo in (bar as IntoIterator).into_iter() {
---
-# Iterator in more detail
+## Iterator in more detail
```rust
pub trait Iterator {
@@ -1177,7 +1177,7 @@ pub trait Iterator {
---
-# Iterator in more detail
+## Iterator in more detail
```rust
pub trait Iterator {
@@ -1202,7 +1202,7 @@ pub trait Iterator {
---
-# Iterator in more detail
+## Iterator in more detail
```rust
pub trait Iterator {
@@ -1224,7 +1224,7 @@ pub trait Iterator {
---
-# Iterator in more detail
+## Iterator in more detail
```rust
pub trait Iterator {
@@ -1255,7 +1255,7 @@ pub trait Iterator {
---
-# Iterator use
+## Iterator use
```rust
let input = stdin.read_to_end();
@@ -1277,7 +1277,7 @@ println!("Sum of first up-to-five valid inputs: {}",
---
-# Sum of an iterator?
+## Sum of an iterator?
.col-6[
@@ -1401,7 +1401,7 @@ _Talk through the code_
---
-# The Rust software ecosystem
+## The Rust software ecosystem
???
@@ -1507,7 +1507,7 @@ _Talk through the code_
---
-# The Rust community
+## The Rust community
- Reddit `/r/rust`
- Discord `https://discord.gg/rust-lang`