Struct sequoia_openpgp::packet::signature::subpacket::NotationDataFlags [−][src]
pub struct NotationDataFlags(_);
Expand description
Flags for the Notation Data subpacket.
Implementations
Returns whether the specified notation data flag is set.
Examples
use sequoia_openpgp as openpgp;
use openpgp::packet::signature::subpacket::NotationDataFlags;
// Notation Data flags 0 and 2.
let ndf = NotationDataFlags::new(&[5, 0, 0, 0])?;
assert!(ndf.get(0));
assert!(! ndf.get(1));
assert!(ndf.get(2));
assert!(! ndf.get(3));
assert!(! ndf.get(8));
assert!(! ndf.get(80));
Sets the specified notation data flag.
Examples
use sequoia_openpgp as openpgp;
use openpgp::packet::signature::subpacket::NotationDataFlags;
let ndf = NotationDataFlags::empty().set(0)?.set(2)?;
assert!(ndf.get(0));
assert!(! ndf.get(1));
assert!(ndf.get(2));
assert!(! ndf.get(3));
Clears the specified notation data flag.
Examples
use sequoia_openpgp as openpgp;
use openpgp::packet::signature::subpacket::NotationDataFlags;
let ndf = NotationDataFlags::empty().set(0)?.set(2)?.clear(2)?;
assert!(ndf.get(0));
assert!(! ndf.get(1));
assert!(! ndf.get(2));
assert!(! ndf.get(3));
Returns whether the value is human-readable.
Asserts that the value is human-readable.
Clear the assertion that the value is human-readable.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for NotationDataFlags
impl Send for NotationDataFlags
impl Sync for NotationDataFlags
impl Unpin for NotationDataFlags
impl UnwindSafe for NotationDataFlags
Blanket Implementations
Mutably borrows from an owned value. Read more