You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-07-17 03:22:22 +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:
committed by
GitHub
parent
8862ab6530
commit
a73c830e45
@ -321,6 +321,9 @@ impl Session {
|
|||||||
/// Return the total duration of this session.
|
/// Return the total duration of this session.
|
||||||
pub fn minutes(&self) -> u64 {
|
pub fn minutes(&self) -> u64 {
|
||||||
let instructional_time: u64 = self.into_iter().map(|s| s.minutes()).sum();
|
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
|
let breaks = (self.into_iter().filter(|s| s.minutes() > 0).count() - 1) as u64
|
||||||
* BREAK_DURATION;
|
* BREAK_DURATION;
|
||||||
instructional_time + breaks
|
instructional_time + breaks
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
course: none
|
course: Android
|
||||||
|
session: Android
|
||||||
---
|
---
|
||||||
# Welcome to Rust in Android
|
# Welcome to Rust in Android
|
||||||
|
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
---
|
||||||
|
session: Afternoon
|
||||||
|
---
|
||||||
# Async Rust
|
# Async Rust
|
||||||
|
|
||||||
"Async" is a concurrency model where multiple tasks are executed concurrently by
|
"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
|
# Welcome to Bare Metal Rust
|
||||||
|
|
||||||
This is a standalone one-day course about bare-metal Rust, aimed at people who are familiar with the
|
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
|
# Application processors
|
||||||
|
|
||||||
So far we've talked about microcontrollers, such as the Arm Cortex-M series. Now let's try writing
|
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
|
# Welcome to Rust in Chromium
|
||||||
|
|
||||||
Rust is supported for third-party libraries in Chromium, with first-party glue
|
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
|
# Welcome to Concurrency in Rust
|
||||||
|
|
||||||
Rust has full support for concurrency using OS threads with mutexes and
|
Rust has full support for concurrency using OS threads with mutexes and
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
---
|
||||||
|
course: none
|
||||||
|
---
|
||||||
# Thanks!
|
# Thanks!
|
||||||
|
|
||||||
_Thank you for taking Comprehensive Rust 🦀!_ We hope you enjoyed it and that it
|
_Thank you for taking Comprehensive Rust 🦀!_ We hope you enjoyed it and that it
|
||||||
|
Reference in New Issue
Block a user