diff options
author | Justus Winter <justus@pep-project.org> | 2017-11-03 10:31:32 +0100 |
---|---|---|
committer | Justus Winter <justus@pep-project.org> | 2017-11-21 17:08:25 +0100 |
commit | 1c9cefa15cf41559afa4b646126582b42a58de84 (patch) | |
tree | f74ae6ec5e959ca67be0ebfc91888d36cc5ce25e /src | |
parent | 2012a9188e3684d1db712c9b6692f44b229f4e81 (diff) |
Make iterators public.
- Make the iterators so that they can be used by the frontend.
Diffstat (limited to 'src')
-rw-r--r-- | src/openpgp/openpgp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openpgp/openpgp.rs b/src/openpgp/openpgp.rs index 01745af3..f813f80a 100644 --- a/src/openpgp/openpgp.rs +++ b/src/openpgp/openpgp.rs @@ -409,7 +409,7 @@ pub struct PacketIter<'a> { } impl Message { - fn iter(&self) -> PacketIter { + pub fn iter(&self) -> PacketIter { return PacketIter { // Iterate over each packet in the message. children: self.packets.iter(), @@ -420,7 +420,7 @@ impl Message { } impl Packet { - fn iter(&self) -> PacketIter { + pub fn iter(&self) -> PacketIter { match self { &Packet::CompressedData(ref cd) => return cd.iter(), // The rest of the packets aren't containers. @@ -437,7 +437,7 @@ impl Packet { } impl CompressedData { - fn iter(&self) -> PacketIter { + pub fn iter(&self) -> PacketIter { return PacketIter { children: self.content.packets.iter(), child: None, |