[][src]Trait rustc_ap_rustc_index::bit_set::FiniteBitSetTy

pub trait FiniteBitSetTy: BitAnd<Output = Self> + BitAndAssign + BitOrAssign + Clone + Copy + Shl + Not<Output = Self> + PartialEq + Sized {
    pub const DOMAIN_SIZE: u32;
    pub const FILLED: Self;
    pub const EMPTY: Self;
    pub const ONE: Self;
    pub const ZERO: Self;

    pub fn checked_shl(self, rhs: u32) -> Option<Self>;
pub fn checked_shr(self, rhs: u32) -> Option<Self>; }

Integral type used to represent the bit set.

Associated Constants

pub const DOMAIN_SIZE: u32[src]

Size of the domain representable by this type, e.g. 64 for u64.

pub const FILLED: Self[src]

Value which represents the FiniteBitSet having every bit set.

pub const EMPTY: Self[src]

Value which represents the FiniteBitSet having no bits set.

pub const ONE: Self[src]

Value for one as the integral type.

pub const ZERO: Self[src]

Value for zero as the integral type.

Loading content...

Required methods

pub fn checked_shl(self, rhs: u32) -> Option<Self>[src]

Perform a checked left shift on the integral type.

pub fn checked_shr(self, rhs: u32) -> Option<Self>[src]

Perform a checked right shift on the integral type.

Loading content...

Implementations on Foreign Types

impl FiniteBitSetTy for u32[src]

impl FiniteBitSetTy for u64[src]

impl FiniteBitSetTy for u128[src]

Loading content...

Implementors

Loading content...