Struct logitech_lcd_sys::BitFlags [] [src]

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

Methods

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

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

impl<T> BitFlags<T> where
    T: EnumFlagSize,
    <T as EnumFlagSize>::Size: InnerBitFlags,
    <T as EnumFlagSize>::Size: Into<BitFlags<T>>, 
[src]

Create an empty BitFlags. Empty means 0.

Sets all flags.

Returns true if all flags are set

Returns true if no flag is set

Returns the underlying type value

Returns true if at least one flag is shared.

Returns true iff all flags are contained.

Flips all flags

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

Truncates flags that are illegal

Trait Implementations

impl<T, B> BitOr<B> for BitFlags<T> where
    B: Into<BitFlags<T>>,
    T: EnumFlagSize,
    <T as EnumFlagSize>::Size: BitOr<<T as EnumFlagSize>::Size>,
    <T as EnumFlagSize>::Size: Into<BitFlags<T>>,
    <<T as EnumFlagSize>::Size as BitOr<<T as EnumFlagSize>::Size>>::Output == <T as EnumFlagSize>::Size
[src]

The resulting type after applying the | operator

The method for the | operator

impl<T> Copy for BitFlags<T> where
    T: EnumFlagSize + Copy,
    <T as EnumFlagSize>::Size: Copy
[src]

impl<T, B> BitAnd<B> for BitFlags<T> where
    B: Into<BitFlags<T>>,
    T: EnumFlagSize,
    <T as EnumFlagSize>::Size: BitAnd<<T as EnumFlagSize>::Size>,
    <T as EnumFlagSize>::Size: Into<BitFlags<T>>,
    <<T as EnumFlagSize>::Size as BitAnd<<T as EnumFlagSize>::Size>>::Output == <T as EnumFlagSize>::Size
[src]

The resulting type after applying the & operator

The method for the & operator

impl<T, B> BitXor<B> for BitFlags<T> where
    B: Into<BitFlags<T>>,
    T: EnumFlagSize,
    <T as EnumFlagSize>::Size: BitXor<<T as EnumFlagSize>::Size>,
    <T as EnumFlagSize>::Size: Into<BitFlags<T>>,
    <<T as EnumFlagSize>::Size as BitXor<<T as EnumFlagSize>::Size>>::Output == <T as EnumFlagSize>::Size
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

impl<T> Eq for BitFlags<T> where
    T: EnumFlagSize + Eq,
    <T as EnumFlagSize>::Size: Eq
[src]

impl<T> PartialEq<BitFlags<T>> for BitFlags<T> where
    T: EnumFlagSize
[src]

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

This method tests for !=.

impl<T> Not for BitFlags<T> where
    T: EnumFlagSize,
    <T as EnumFlagSize>::Size: Not,
    <T as EnumFlagSize>::Size: Into<BitFlags<T>>,
    <<T as EnumFlagSize>::Size as Not>::Output == <T as EnumFlagSize>::Size
[src]

The resulting type after applying the ! operator

The method for the unary ! operator

impl<T> Debug for BitFlags<T> where
    T: EnumFlagSize,
    <T as EnumFlagSize>::Size: Debug
[src]

Formats the value using the given formatter.

impl<T> Clone for BitFlags<T> where
    T: EnumFlagSize + Clone,
    <T as EnumFlagSize>::Size: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<LcdType> for BitFlags<LcdType>
[src]

Performs the conversion.

impl From<LcdButton> for BitFlags<LcdButton>
[src]

Performs the conversion.