[][src]Struct moore::Verbosity

pub struct Verbosity { /* fields omitted */ }

A set of verbosity options for a session.

These flags control how much information the compiler emits.

Methods

impl Verbosity[src]

pub const TYPES: Verbosity[src]

pub const EXPR_TYPES: Verbosity[src]

pub const TYPE_CONTEXTS: Verbosity[src]

pub const TYPECK: Verbosity[src]

pub const NAMES: Verbosity[src]

pub const CASTS: Verbosity[src]

pub const PORTS: Verbosity[src]

pub fn empty() -> Verbosity[src]

Returns an empty set of flags.

pub fn all() -> Verbosity[src]

Returns the set containing all flags.

pub fn bits(&self) -> u8[src]

Returns the raw value of the flags currently stored.

pub fn from_bits(bits: u8) -> Option<Verbosity>[src]

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

pub fn from_bits_truncate(bits: u8) -> Verbosity[src]

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

pub fn is_empty(&self) -> bool[src]

Returns true if no flags are currently stored.

pub fn is_all(&self) -> bool[src]

Returns true if all flags are currently set.

pub fn intersects(&self, other: Verbosity) -> bool[src]

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

pub fn contains(&self, other: Verbosity) -> bool[src]

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

pub fn insert(&mut self, other: Verbosity)[src]

Inserts the specified flags in-place.

pub fn remove(&mut self, other: Verbosity)[src]

Removes the specified flags in-place.

pub fn toggle(&mut self, other: Verbosity)[src]

Toggles the specified flags in-place.

pub fn set(&mut self, other: Verbosity, value: bool)[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Binary for Verbosity[src]

impl BitAnd<Verbosity> for Verbosity[src]

type Output = Verbosity

The resulting type after applying the & operator.

fn bitand(self, other: Verbosity) -> Verbosity[src]

Returns the intersection between the two sets of flags.

impl BitAndAssign<Verbosity> for Verbosity[src]

fn bitand_assign(&mut self, other: Verbosity)[src]

Disables all flags disabled in the set.

impl BitOr<Verbosity> for Verbosity[src]

type Output = Verbosity

The resulting type after applying the | operator.

fn bitor(self, other: Verbosity) -> Verbosity[src]

Returns the union of the two sets of flags.

impl BitOrAssign<Verbosity> for Verbosity[src]

fn bitor_assign(&mut self, other: Verbosity)[src]

Adds the set of flags.

impl BitXor<Verbosity> for Verbosity[src]

type Output = Verbosity

The resulting type after applying the ^ operator.

fn bitxor(self, other: Verbosity) -> Verbosity[src]

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign<Verbosity> for Verbosity[src]

fn bitxor_assign(&mut self, other: Verbosity)[src]

Toggles the set of flags.

impl Clone for Verbosity[src]

impl Copy for Verbosity[src]

impl Debug for Verbosity[src]

impl Default for Verbosity[src]

impl Eq for Verbosity[src]

impl Extend<Verbosity> for Verbosity[src]

impl FromIterator<Verbosity> for Verbosity[src]

impl Hash for Verbosity[src]

impl LowerHex for Verbosity[src]

impl Not for Verbosity[src]

type Output = Verbosity

The resulting type after applying the ! operator.

fn not(self) -> Verbosity[src]

Returns the complement of this set of flags.

impl Octal for Verbosity[src]

impl Ord for Verbosity[src]

impl PartialEq<Verbosity> for Verbosity[src]

impl PartialOrd<Verbosity> for Verbosity[src]

impl StructuralEq for Verbosity[src]

impl StructuralPartialEq for Verbosity[src]

impl Sub<Verbosity> for Verbosity[src]

type Output = Verbosity

The resulting type after applying the - operator.

fn sub(self, other: Verbosity) -> Verbosity[src]

Returns the set difference of the two sets of flags.

impl SubAssign<Verbosity> for Verbosity[src]

fn sub_assign(&mut self, other: Verbosity)[src]

Disables all flags enabled in the set.

impl UpperHex for Verbosity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.