Skip to main content

SmolBitSet

Struct SmolBitSet 

Source
pub struct SmolBitSet { /* private fields */ }
Expand description

A dynamically sized bitset with memory usage optimizations.

Implementations§

Source§

impl SmolBitSet

Source

pub fn and_not(self, rhs: &Self) -> Self

Unsets all bits set on the rhs SmolBitSet.

This is equivalent to self & !rhs with integers.

Source

pub fn and_not_assign(&mut self, rhs: &Self)

Unsets all bits set on the rhs SmolBitSet.

This is equivalent to *self &= !rhs with integers.

Source§

impl SmolBitSet

Source

pub const fn new() -> Self

Constructs a new, empty SmolBitSet.

§Examples
let mut sbs = SmolBitSet::new();
Source

pub const fn new_small(val: usize) -> Self

Constructs a new SmolBitSet from the provided val without any heap allocations.

§Panics

Panics if any of the 2 most significant bits in val is 1.

§Examples
const sbs: SmolBitSet = SmolBitSet::new_small(1234);
assert_eq!(sbs, SmolBitSet::from(1234u16));
Source

pub const fn new_flag(bit: u32) -> Self

Constructs a new sparse SmolBitSet from the provided bit index without any heap allocations.

§Panics

Panics if bit is larger than 2^30.

§Examples
const sbs: SmolBitSet = SmolBitSet::new_flag(1234);
assert_eq!(sbs, SmolBitSet::new_flag(0) << 1234);
Source

pub const fn from_bits_small<const N: usize>(bits: [usize; N]) -> Self

Constructs a new SmolBitSet from the provided array of bit indices without any heap allocations.

§Panics

Panics if any bit index in bits is larger than or equal to usize::BITS - 2.

§Examples
const sbs: SmolBitSet = SmolBitSet::from_bits_small([0, 4, 1, 6]);
assert_eq!(sbs, SmolBitSet::from(0b0101_0011u8));
// this panics since 62 is outside of the range
// a SmolBitSet can hold without incurring a heap allocation
let sbs = SmolBitSet::from_bits_small([62]);
// this fails to compile since the const evaluation
// panics for the same reason as above
const sbs: SmolBitSet = SmolBitSet::from_bits_small([62]);
Source

pub fn from_bits(bits: &[usize]) -> Self

Creates a new SmolBitSet from the provided slice of bit indices.

§Examples
// bit indices can be in any order
let sbs = SmolBitSet::from_bits(&[0, 6, 4, 3]);
assert_eq!(sbs, SmolBitSet::from(0b0101_1001u8));

let sbs = SmolBitSet::from_bits(&[63]);
assert_eq!(sbs, SmolBitSet::from(1u64 << 63));

Trait Implementations§

Source§

impl Binary for SmolBitSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl BitAnd for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: Self) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<&SmolBitSet> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &Self) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<&u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u8) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<&u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u16) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<&u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u32) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<&u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u64) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<&u128> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &u128) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<&usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: &usize) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u8) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u16) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u32) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u64) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<u128> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: u128) -> Self

Performs the & operation. Read more
Source§

impl BitAnd<usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the & operator.
Source§

fn bitand(self, rhs: usize) -> Self

Performs the & operation. Read more
Source§

impl BitAndAssign for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&SmolBitSet> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: &Self)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u8> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: &u8)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u16> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: &u16)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u32> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: &u32)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u64> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: &u64)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&u128> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: &u128)

Performs the &= operation. Read more
Source§

impl BitAndAssign<&usize> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: &usize)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u8> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: u8)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u16> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: u16)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u32> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: u32)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u64> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: u64)

Performs the &= operation. Read more
Source§

impl BitAndAssign<u128> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: u128)

Performs the &= operation. Read more
Source§

impl BitAndAssign<usize> for SmolBitSet

Source§

fn bitand_assign(&mut self, rhs: usize)

Performs the &= operation. Read more
Source§

impl BitOr for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr<&SmolBitSet> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &Self) -> Self

Performs the | operation. Read more
Source§

impl BitOr<&u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u8) -> Self

Performs the | operation. Read more
Source§

impl BitOr<&u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u16) -> Self

Performs the | operation. Read more
Source§

impl BitOr<&u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u32) -> Self

Performs the | operation. Read more
Source§

impl BitOr<&u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u64) -> Self

Performs the | operation. Read more
Source§

impl BitOr<&u128> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &u128) -> Self

Performs the | operation. Read more
Source§

impl BitOr<&usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: &usize) -> Self

Performs the | operation. Read more
Source§

impl BitOr<u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u8) -> Self

Performs the | operation. Read more
Source§

impl BitOr<u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u16) -> Self

Performs the | operation. Read more
Source§

impl BitOr<u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u32) -> Self

Performs the | operation. Read more
Source§

impl BitOr<u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u64) -> Self

Performs the | operation. Read more
Source§

impl BitOr<u128> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: u128) -> Self

Performs the | operation. Read more
Source§

impl BitOr<usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: usize) -> Self

Performs the | operation. Read more
Source§

impl BitOrAssign for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&SmolBitSet> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: &Self)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u8> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: &u8)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u16> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: &u16)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u32> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: &u32)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u64> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: &u64)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&u128> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: &u128)

Performs the |= operation. Read more
Source§

impl BitOrAssign<&usize> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: &usize)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u8> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: u8)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u16> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: u16)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u32> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: u32)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u64> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: u64)

Performs the |= operation. Read more
Source§

impl BitOrAssign<u128> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: u128)

Performs the |= operation. Read more
Source§

impl BitOrAssign<usize> for SmolBitSet

Source§

fn bitor_assign(&mut self, rhs: usize)

Performs the |= operation. Read more
Source§

impl BitXor for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: Self) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<&SmolBitSet> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &Self) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<&u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u8) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<&u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u16) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<&u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u32) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<&u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u64) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<&u128> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &u128) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<&usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: &usize) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u8) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u16) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u32) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u64) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<u128> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: u128) -> Self

Performs the ^ operation. Read more
Source§

impl BitXor<usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the ^ operator.
Source§

fn bitxor(self, rhs: usize) -> Self

Performs the ^ operation. Read more
Source§

impl BitXorAssign for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&SmolBitSet> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: &Self)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u8> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: &u8)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u16> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: &u16)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u32> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: &u32)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u64> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: &u64)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&u128> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: &u128)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<&usize> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: &usize)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u8> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: u8)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u16> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: u16)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u32> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: u32)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u64> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: u64)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<u128> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: u128)

Performs the ^= operation. Read more
Source§

impl BitXorAssign<usize> for SmolBitSet

Source§

fn bitxor_assign(&mut self, rhs: usize)

Performs the ^= operation. Read more
Source§

impl Clone for SmolBitSet

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SmolBitSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SmolBitSet

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SmolBitSet

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for SmolBitSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for SmolBitSet

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl Eq for SmolBitSet

Source§

impl From<&u8> for SmolBitSet

Source§

fn from(value: &u8) -> Self

Converts to this type from the input type.
Source§

impl From<&u16> for SmolBitSet

Source§

fn from(value: &u16) -> Self

Converts to this type from the input type.
Source§

impl From<&u32> for SmolBitSet

Source§

fn from(value: &u32) -> Self

Converts to this type from the input type.
Source§

impl From<&u64> for SmolBitSet

Source§

fn from(value: &u64) -> Self

Converts to this type from the input type.
Source§

impl From<&u128> for SmolBitSet

Source§

fn from(value: &u128) -> Self

Converts to this type from the input type.
Source§

impl From<&usize> for SmolBitSet

Source§

fn from(value: &usize) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for SmolBitSet

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for SmolBitSet

Source§

fn from(value: u16) -> Self

Converts to this type from the input type.
Source§

impl From<u32> for SmolBitSet

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for SmolBitSet

Source§

fn from(value: u64) -> Self

Converts to this type from the input type.
Source§

impl From<u128> for SmolBitSet

Source§

fn from(value: u128) -> Self

Converts to this type from the input type.
Source§

impl From<usize> for SmolBitSet

Source§

fn from(value: usize) -> Self

Converts to this type from the input type.
Source§

impl FromStr for SmolBitSet

Source§

type Err = ()

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for SmolBitSet

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl LowerHex for SmolBitSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Octal for SmolBitSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ord for SmolBitSet

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for SmolBitSet

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for SmolBitSet

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Send for SmolBitSet

Source§

impl Serialize for SmolBitSet

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Shl<&i8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i8) -> Self

Performs the << operation. Read more
Source§

impl Shl<&i16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i16) -> Self

Performs the << operation. Read more
Source§

impl Shl<&i32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i32) -> Self

Performs the << operation. Read more
Source§

impl Shl<&i64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &i64) -> Self

Performs the << operation. Read more
Source§

impl Shl<&isize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &isize) -> Self

Performs the << operation. Read more
Source§

impl Shl<&u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u8) -> Self

Performs the << operation. Read more
Source§

impl Shl<&u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u16) -> Self

Performs the << operation. Read more
Source§

impl Shl<&u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u32) -> Self

Performs the << operation. Read more
Source§

impl Shl<&u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &u64) -> Self

Performs the << operation. Read more
Source§

impl Shl<&usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: &usize) -> Self

Performs the << operation. Read more
Source§

impl Shl<i8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i8) -> Self

Performs the << operation. Read more
Source§

impl Shl<i16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i16) -> Self

Performs the << operation. Read more
Source§

impl Shl<i32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i32) -> Self

Performs the << operation. Read more
Source§

impl Shl<i64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: i64) -> Self

Performs the << operation. Read more
Source§

impl Shl<isize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: isize) -> Self

Performs the << operation. Read more
Source§

impl Shl<u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u8) -> Self

Performs the << operation. Read more
Source§

impl Shl<u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u16) -> Self

Performs the << operation. Read more
Source§

impl Shl<u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u32) -> Self

Performs the << operation. Read more
Source§

impl Shl<u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: u64) -> Self

Performs the << operation. Read more
Source§

impl Shl<usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the << operator.
Source§

fn shl(self, rhs: usize) -> Self

Performs the << operation. Read more
Source§

impl ShlAssign<&i8> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &i8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i16> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &i16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i32> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &i32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&i64> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &i64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&isize> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &isize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u8> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &u8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u16> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &u16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u32> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&u64> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &u64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<&usize> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: &usize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i8> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: i8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i16> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: i16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i32> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: i32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<i64> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: i64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<isize> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: isize)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u8> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: u8)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u16> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: u16)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u32> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: u32)

Performs the <<= operation. Read more
Source§

impl ShlAssign<u64> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: u64)

Performs the <<= operation. Read more
Source§

impl ShlAssign<usize> for SmolBitSet

Source§

fn shl_assign(&mut self, rhs: usize)

Performs the <<= operation. Read more
Source§

impl Shr<&i8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i8) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&i16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i16) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&i32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i32) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&i64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &i64) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&isize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &isize) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u8) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u16) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u32) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &u64) -> Self

Performs the >> operation. Read more
Source§

impl Shr<&usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: &usize) -> Self

Performs the >> operation. Read more
Source§

impl Shr<i8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i8) -> Self

Performs the >> operation. Read more
Source§

impl Shr<i16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i16) -> Self

Performs the >> operation. Read more
Source§

impl Shr<i32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i32) -> Self

Performs the >> operation. Read more
Source§

impl Shr<i64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: i64) -> Self

Performs the >> operation. Read more
Source§

impl Shr<isize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: isize) -> Self

Performs the >> operation. Read more
Source§

impl Shr<u8> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u8) -> Self

Performs the >> operation. Read more
Source§

impl Shr<u16> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u16) -> Self

Performs the >> operation. Read more
Source§

impl Shr<u32> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u32) -> Self

Performs the >> operation. Read more
Source§

impl Shr<u64> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: u64) -> Self

Performs the >> operation. Read more
Source§

impl Shr<usize> for SmolBitSet

Source§

type Output = SmolBitSet

The resulting type after applying the >> operator.
Source§

fn shr(self, rhs: usize) -> Self

Performs the >> operation. Read more
Source§

impl ShrAssign<&i8> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &i8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i16> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &i16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i32> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &i32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&i64> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &i64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&isize> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &isize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u8> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &u8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u16> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &u16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u32> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&u64> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &u64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<&usize> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: &usize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i8> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: i8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i16> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: i16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i32> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: i32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<i64> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: i64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<isize> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: isize)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u8> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: u8)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u16> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: u16)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u32> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: u32)

Performs the >>= operation. Read more
Source§

impl ShrAssign<u64> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: u64)

Performs the >>= operation. Read more
Source§

impl ShrAssign<usize> for SmolBitSet

Source§

fn shr_assign(&mut self, rhs: usize)

Performs the >>= operation. Read more
Source§

impl Sync for SmolBitSet

Source§

impl TryFrom<String> for SmolBitSet

Source§

type Error = ()

The type returned in the event of a conversion error.
Source§

fn try_from(value: String) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TypeSize for SmolBitSet

Source§

fn extra_size(&self) -> usize

The number of bytes more than the core::mem::size_of that this value is using.
Source§

fn get_size(&self) -> usize

The total number of bytes that this type is using, both direct (core::mem::size_of) and indirect (behind allocations) Read more
Source§

impl UpperHex for SmolBitSet

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.