Struct rustc_resolve::DefModifiers [−] [src]

pub struct DefModifiers {
    // some fields omitted
}
Unstable

Methods

impl DefModifiers

const PUBLIC: DefModifiers = $ BitFlags { bits : $ value }

Unstable

const IMPORTABLE: DefModifiers = $ BitFlags { bits : $ value }

Unstable

fn empty() -> DefModifiers

Unstable

Returns an empty set of flags.

fn all() -> DefModifiers

Unstable

Returns the set containing all flags.

fn bits(&self) -> u8

Unstable

Returns the raw value of the flags currently stored.

fn from_bits(bits: u8) -> Option<DefModifiers>

Unstable

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

fn from_bits_truncate(bits: u8) -> DefModifiers

Unstable

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

fn is_empty(&self) -> bool

Unstable

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Unstable

Returns true if all flags are currently set.

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

Unstable

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

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

Unstable

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

fn insert(&mut self, other: DefModifiers)

Unstable

Inserts the specified flags in-place.

fn remove(&mut self, other: DefModifiers)

Unstable

Removes the specified flags in-place.

fn toggle(&mut self, other: DefModifiers)

Unstable

Toggles the specified flags in-place.

Trait Implementations

impl BitOr for DefModifiers

type Output = DefModifiers

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

impl BitXor for DefModifiers

type Output = DefModifiers

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

impl BitAnd for DefModifiers

type Output = DefModifiers

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

impl Sub for DefModifiers

type Output = DefModifiers

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

impl Not for DefModifiers

type Output = DefModifiers

fn not(self) -> DefModifiers

Derived Implementations

impl Hash for DefModifiers

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

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

impl Ord for DefModifiers

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

impl PartialOrd for DefModifiers

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

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

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

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

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

impl Clone for DefModifiers

fn clone(&self) -> DefModifiers

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

impl Eq for DefModifiers

impl PartialEq for DefModifiers

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

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

impl Copy for DefModifiers

impl Debug for DefModifiers

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