summaryrefslogtreecommitdiffstats
path: root/guide
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2018-11-16 11:04:36 +0100
committerJustus Winter <justus@sequoia-pgp.org>2018-12-14 14:05:21 +0100
commitd411fb80983a4d4ebb9f023599c38e34a26551e7 (patch)
treefc970ff950923f7c400b24163f4079b3c6ba48cf /guide
parent251541318fdf453c5d756794b906cce2fd69b675 (diff)
openpgp: Introduce trait Parse.
- Trait Parse introduces a uniform interface to parse packets, messages, keys, and related data structures.
Diffstat (limited to 'guide')
-rw-r--r--guide/src/chapter_02.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/guide/src/chapter_02.md b/guide/src/chapter_02.md
index f39cecd1..80d5cc1c 100644
--- a/guide/src/chapter_02.md
+++ b/guide/src/chapter_02.md
@@ -17,6 +17,7 @@ success, we can use or examine the resulting [`TPK`]:
```rust
extern crate sequoia_openpgp as openpgp;
+use openpgp::parse::Parse;
const KEY: &str =
"-----BEGIN PGP PUBLIC KEY BLOCK-----
@@ -71,6 +72,7 @@ structure using this grammar:
```rust
extern crate sequoia_openpgp as openpgp;
+use openpgp::parse::Parse;
const MESSAGE: &str =
"-----BEGIN PGP MESSAGE-----
@@ -105,6 +107,7 @@ turned into a vector of [`Packet`]s:
```rust
extern crate sequoia_openpgp as openpgp;
+use openpgp::parse::Parse;
const MESSAGE: &str =
"-----BEGIN PGP MESSAGE-----