pub struct BitMap<T, Pos>where
    Bits<T>: BitsOps<T>,
    Pos: Into<u32> + TryFrom<u32>,
    T: Sized + IntoBits<Output = Bits<T>>,
{ /* private fields */ }
Expand description

En::into::() 用于指示 T 中第 nth 个 bit,而不是掩码 1 << nth 。

Implementations

用于快速的确定 bitmap 中某一个 bit 是否置位

Trait Implementations

The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.