Struct gpgme::ops::ImportFlags []

pub struct ImportFlags {
    // some fields omitted
}

Methods

impl ImportFlags

fn empty() -> ImportFlags

Returns an empty set of flags.

fn all() -> ImportFlags

Returns the set containing all flags.

fn bits(&self) -> c_uint

Returns the raw value of the flags currently stored.

fn from_bits(bits: c_uint) -> Option<ImportFlags>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: c_uint) -> ImportFlags

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: ImportFlags) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: ImportFlags) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: ImportFlags)

Inserts the specified flags in-place.

fn remove(&mut self, other: ImportFlags)

Removes the specified flags in-place.

fn toggle(&mut self, other: ImportFlags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for ImportFlags

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for ImportFlags

type Output = ImportFlags

fn bitor(self, other: ImportFlags) -> ImportFlags

impl BitXor for ImportFlags

type Output = ImportFlags

fn bitxor(self, other: ImportFlags) -> ImportFlags

impl BitAnd for ImportFlags

type Output = ImportFlags

fn bitand(self, other: ImportFlags) -> ImportFlags

impl Sub for ImportFlags

type Output = ImportFlags

fn sub(self, other: ImportFlags) -> ImportFlags

impl Not for ImportFlags

type Output = ImportFlags

fn not(self) -> ImportFlags

impl FromIterator<ImportFlags> for ImportFlags

fn from_iter<T: IntoIterator<Item=ImportFlags>>(iterator: T) -> ImportFlags

Derived Implementations

impl Hash for ImportFlags

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for ImportFlags

fn cmp(&self, __arg_0: &ImportFlags) -> Ordering

impl PartialOrd for ImportFlags

fn partial_cmp(&self, __arg_0: &ImportFlags) -> Option<Ordering>

fn lt(&self, __arg_0: &ImportFlags) -> bool

fn le(&self, __arg_0: &ImportFlags) -> bool

fn gt(&self, __arg_0: &ImportFlags) -> bool

fn ge(&self, __arg_0: &ImportFlags) -> bool

impl Clone for ImportFlags

fn clone(&self) -> ImportFlags

1.0.0fn clone_from(&mut self, source: &Self)

impl Eq for ImportFlags

impl PartialEq for ImportFlags

fn eq(&self, __arg_0: &ImportFlags) -> bool

fn ne(&self, __arg_0: &ImportFlags) -> bool

impl Copy for ImportFlags