Struct sequoia_openpgp::parse::map::Map [−][src]
pub struct Map { /* fields omitted */ }
Expand description
Map created during parsing.
Implementations
Creates an iterator over the map.
Returns references to Field
s.
Examples
use sequoia_openpgp as openpgp; use openpgp::parse::{Parse, PacketParserBuilder}; let message_data = b"\xcb\x12t\x00\x00\x00\x00\x00Hello world."; let pp = PacketParserBuilder::from_bytes(message_data)? .map(true) // Enable mapping. .build()? .expect("One packet, not EOF"); let map = pp.map().expect("Mapping is enabled"); assert_eq!(map.iter().count(), 6);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Map
impl UnwindSafe for Map
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self