diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2018-11-16 11:04:36 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2018-12-14 14:05:21 +0100 |
commit | d411fb80983a4d4ebb9f023599c38e34a26551e7 (patch) | |
tree | fc970ff950923f7c400b24163f4079b3c6ba48cf /guide/src/chapter_02.md | |
parent | 251541318fdf453c5d756794b906cce2fd69b675 (diff) |
openpgp: Introduce trait Parse.
- Trait Parse introduces a uniform interface to parse packets,
messages, keys, and related data structures.
Diffstat (limited to 'guide/src/chapter_02.md')
-rw-r--r-- | guide/src/chapter_02.md | 3 |
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----- |