Struct ruint::Bits

source · []
pub struct Bits<const BITS: usize, const LIMBS: usize>(_);
Expand description

Bit vector

This is a newtype wrapper around Uint<BITS, LIMBS> that restricts operations to those relevant for bit vectors.

Implementations

The size of this integer type in 64-bit limbs.

The size of this integer type in bits.

The size of this integer type in bits.

The value zero. This is the only value that exists in all Uint types.

See Uint::reverse_bits for documentation.

See Uint::as_le_bytes for documentation.

See Uint::as_limbs for documentation.

See Uint::leading_zeros for documentation.

See Uint::leading_ones for documentation.

See Uint::trailing_zeros for documentation.

See Uint::trailing_ones for documentation.

See Uint::as_limbs_mut for documentation.

See Uint::checked_shl for documentation.

See Uint::checked_shr for documentation.

See Uint::overflowing_shl for documentation.

See Uint::overflowing_shr for documentation.

See Uint::wrapping_shl for documentation.

See Uint::wrapping_shr for documentation.

See Uint::rotate_left for documentation.

See Uint::rotate_right for documentation.

Trait Implementations

The resulting type after applying the & operator.

Performs the & operation. Read more

The resulting type after applying the & operator.

Performs the & operation. Read more

The resulting type after applying the & operator.

Performs the & operation. Read more

The resulting type after applying the & operator.

Performs the & operation. Read more

Performs the &= operation. Read more

Performs the &= operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

The resulting type after applying the | operator.

Performs the | operation. Read more

Performs the |= operation. Read more

Performs the |= operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

The resulting type after applying the ^ operator.

Performs the ^ operation. Read more

Performs the ^= operation. Read more

Performs the ^= operation. Read more

Converts to this type from the input type.

Converts to this type from the input type.

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

The resulting type after applying the ! operator.

Performs the unary ! operation. Read more

The resulting type after applying the << operator.

Performs the << operation. Read more

The resulting type after applying the << operator.

Performs the << operation. Read more

The resulting type after applying the << operator.

Performs the << operation. Read more

The resulting type after applying the << operator.

Performs the << operation. Read more

Performs the <<= operation. Read more

Performs the <<= operation. Read more

The resulting type after applying the >> operator.

Performs the >> operation. Read more

The resulting type after applying the >> operator.

Performs the >> operation. Read more

The resulting type after applying the >> operator.

Performs the >> operation. Read more

The resulting type after applying the >> operator.

Performs the >> operation. Read more

Performs the >>= operation. Read more

Performs the >>= operation. 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.