Struct enumflags::BitFlags [] [src]

pub struct BitFlags<T: RawBitFlags> { /* fields omitted */ }

Methods

impl<T> BitFlags<T> where
    T: RawBitFlags
[src]

[src]

Create a new BitFlags unsafely. Consider using from_bits or from_bits_truncate.

impl<T> BitFlags<T> where
    T: RawBitFlags
[src]

[src]

Create an empty BitFlags. Empty means 0.

[src]

Sets all flags.

[src]

Returns true if all flags are set

[src]

Returns true if no flag is set

[src]

Returns the underlying type value

[src]

Returns true if at least one flag is shared.

[src]

Returns true iff all flags are contained.

[src]

Flips all flags

[src]

Returns a BitFlags iff the bits value does not contain any illegal flags.

[src]

Truncates flags that are illegal

[src]

Toggles the matching bits

[src]

Inserts the flags into the BitFlag

[src]

Removes the matching flags

Trait Implementations

impl<T: Copy + RawBitFlags> Copy for BitFlags<T> where
    T::Type: Copy
[src]

impl<T: Clone + RawBitFlags> Clone for BitFlags<T> where
    T::Type: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Debug for BitFlags<T> where
    T: RawBitFlags + BitFlagsFmt
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: RawBitFlags> From<T> for BitFlags<T>
[src]

[src]

Performs the conversion.

impl<T, B> PartialEq<B> for BitFlags<T> where
    T: RawBitFlags,
    B: Into<BitFlags<T>> + Copy
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<T, B> BitOr<B> for BitFlags<T> where
    T: RawBitFlags,
    B: Into<BitFlags<T>>, 
[src]

The resulting type after applying the | operator.

[src]

Performs the | operation.

impl<T, B> BitAnd<B> for BitFlags<T> where
    T: RawBitFlags,
    B: Into<BitFlags<T>>, 
[src]

The resulting type after applying the & operator.

[src]

Performs the & operation.

impl<T, B> BitXor<B> for BitFlags<T> where
    T: RawBitFlags,
    B: Into<BitFlags<T>>, 
[src]

The resulting type after applying the ^ operator.

[src]

Performs the ^ operation.

impl<T, B> BitOrAssign<B> for BitFlags<T> where
    T: RawBitFlags,
    B: Into<BitFlags<T>>, 
[src]

[src]

Performs the |= operation.

impl<T, B> BitAndAssign<B> for BitFlags<T> where
    T: RawBitFlags,
    B: Into<BitFlags<T>>, 
[src]

[src]

Performs the &= operation.

impl<T, B> BitXorAssign<B> for BitFlags<T> where
    T: RawBitFlags,
    B: Into<BitFlags<T>>, 
[src]

[src]

Performs the ^= operation.

impl<T> Not for BitFlags<T> where
    T: RawBitFlags
[src]

The resulting type after applying the ! operator.

[src]

Performs the unary ! operation.

impl<T, B> FromIterator<B> for BitFlags<T> where
    T: RawBitFlags,
    B: Into<BitFlags<T>>, 
[src]

[src]

Creates a value from an iterator. Read more

Auto Trait Implementations

impl<T> Send for BitFlags<T> where
    <T as RawBitFlags>::Type: Send

impl<T> Sync for BitFlags<T> where
    <T as RawBitFlags>::Type: Sync