mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-20 05:09:57 +02:00
Add course and session markers for deep-dives (#1521)
This doesn't add any timing information. The authors of each deep-dive can do that separately. Fixes #1510.
This commit is contained in:
parent
8862ab6530
commit
a73c830e45
@ -321,6 +321,9 @@ impl Session {
|
||||
/// Return the total duration of this session.
|
||||
pub fn minutes(&self) -> u64 {
|
||||
let instructional_time: u64 = self.into_iter().map(|s| s.minutes()).sum();
|
||||
if instructional_time == 0 {
|
||||
return instructional_time;
|
||||
}
|
||||
let breaks = (self.into_iter().filter(|s| s.minutes() > 0).count() - 1) as u64
|
||||
* BREAK_DURATION;
|
||||
instructional_time + breaks
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
course: none
|
||||
course: Android
|
||||
session: Android
|
||||
---
|
||||
# Welcome to Rust in Android
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
---
|
||||
session: Afternoon
|
||||
---
|
||||
# Async Rust
|
||||
|
||||
"Async" is a concurrency model where multiple tasks are executed concurrently by
|
||||
|
@ -1,3 +1,7 @@
|
||||
---
|
||||
course: Bare Metal
|
||||
session: Morning
|
||||
---
|
||||
# Welcome to Bare Metal Rust
|
||||
|
||||
This is a standalone one-day course about bare-metal Rust, aimed at people who are familiar with the
|
||||
|
@ -1,3 +1,6 @@
|
||||
---
|
||||
session: Afternoon
|
||||
---
|
||||
# Application processors
|
||||
|
||||
So far we've talked about microcontrollers, such as the Arm Cortex-M series. Now let's try writing
|
||||
|
@ -1,3 +1,7 @@
|
||||
---
|
||||
course: Chromium
|
||||
session: Chromium
|
||||
---
|
||||
# Welcome to Rust in Chromium
|
||||
|
||||
Rust is supported for third-party libraries in Chromium, with first-party glue
|
||||
|
@ -1,3 +1,7 @@
|
||||
---
|
||||
course: Concurrency
|
||||
session: Morning
|
||||
---
|
||||
# Welcome to Concurrency in Rust
|
||||
|
||||
Rust has full support for concurrency using OS threads with mutexes and
|
||||
|
@ -1,3 +1,6 @@
|
||||
---
|
||||
course: none
|
||||
---
|
||||
# Thanks!
|
||||
|
||||
_Thank you for taking Comprehensive Rust 🦀!_ We hope you enjoyed it and that it
|
||||
|
Loading…
x
Reference in New Issue
Block a user