by value, by reference, and by mutable reference.
In general, the `get` family of methods is used to access contained
-data without any risk of task failure; they return `Option` as
+data without any risk of thread failure; they return `Option` as
appropriate. This name is chosen rather than names like `find` or
`lookup` because it is appropriate for a wider range of container types.
For a container with keys/indexes of type `K` and elements of type `V`:
-```rust
+```rust,ignore
// Look up element without failing
fn get(&self, key: K) -> Option<&V>
fn get_mut(&mut self, key: K) -> Option<&mut V>
Prefer specific conversion functions like `as_bytes` or `into_vec` whenever
possible. Otherwise, use:
-```rust
+```rust,ignore
// Extract contents without failing
fn get(&self) -> &V
fn get_mut(&mut self) -> &mut V
#### Wrappers/Cells around `Copy` data
-```rust
+```rust,ignore
// Extract contents without failing
fn get(&self) -> V
```
For `Option<V>`:
-```rust
+```rust,ignore
// Extract contents or fail if not available
fn assert(self) -> V
fn expect(self, &str) -> V
For `Result<V, E>`:
-```rust
+```rust,ignore
// Extract the contents of Ok variant; fail if Err
fn assert(self) -> V