Struct ucl::parser::Flags [] [src]

pub struct Flags {
    // some fields omitted
}

Methods

impl Flags

fn empty() -> Flags

Returns an empty set of flags.

fn all() -> Flags

Returns the set containing all flags.

fn bits(&self) -> i32

Returns the raw value of the flags currently stored.

fn from_bits(bits: i32) -> Option<Flags>

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

fn from_bits_truncate(bits: i32) -> Flags

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: Flags) -> bool

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

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

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

fn insert(&mut self, other: Flags)

Inserts the specified flags in-place.

fn remove(&mut self, other: Flags)

Removes the specified flags in-place.

fn toggle(&mut self, other: Flags)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for Flags

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

impl BitOr for Flags

type Output = Flags

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

impl BitXor for Flags

type Output = Flags

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

impl BitAnd for Flags

type Output = Flags

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

impl Sub for Flags

type Output = Flags

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

impl Not for Flags

type Output = Flags

fn not(self) -> Flags

impl FromIterator<Flags> for Flags

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

Derived Implementations

impl Hash for Flags

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

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

impl Ord for Flags

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

impl PartialOrd for Flags

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

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

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

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

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

impl Clone for Flags

fn clone(&self) -> Flags

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

impl Eq for Flags

impl PartialEq for Flags

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

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

impl Copy for Flags