#[repr(C, packed(1))]pub struct FixedBitSet<B = u64> { /* private fields */ }Expand description
A bit set that, once created, has a fixed size over time.
The set can store at most u16::MAX number of bits.
Implementations§
Trait Implementations§
Source§impl<B: BitBlock> Debug for FixedBitSet<B>
impl<B: BitBlock> Debug for FixedBitSet<B>
Source§impl<'de, B: BitBlock + Deserialize<'de>> Deserialize<'de> for FixedBitSet<B>
impl<'de, B: BitBlock + Deserialize<'de>> Deserialize<'de> for FixedBitSet<B>
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given
deserializer.Source§impl<B> Drop for FixedBitSet<B>
impl<B> Drop for FixedBitSet<B>
Source§impl<B> MemoryUsage for FixedBitSet<B>
impl<B> MemoryUsage for FixedBitSet<B>
Source§fn heap_usage(&self) -> usize
fn heap_usage(&self) -> usize
The heap memory usage of this type. The default implementation returns 0.
Source§impl<B: BitBlock> PartialEq for FixedBitSet<B>
impl<B: BitBlock> PartialEq for FixedBitSet<B>
impl<B: BitBlock> Eq for FixedBitSet<B>
impl<B> Send for FixedBitSet<B>
impl<B> Sync for FixedBitSet<B>
Auto Trait Implementations§
impl<B> Freeze for FixedBitSet<B>
impl<B> RefUnwindSafe for FixedBitSet<B>where
B: RefUnwindSafe,
impl<B> Unpin for FixedBitSet<B>
impl<B> UnwindSafe for FixedBitSet<B>where
B: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Satn for T
impl<T> Satn for T
Source§fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the SATN data format into the formatter
f.Source§fn fmt_psql(&self, f: &mut Formatter<'_>, ty: &ProductType) -> Result<(), Error>
fn fmt_psql(&self, f: &mut Formatter<'_>, ty: &ProductType) -> Result<(), Error>
Formats the value using the postgres SATN(SatnFormatter { f }, /* AlgebraicType */) formatter
f.Source§fn to_satn(&self) -> String
fn to_satn(&self) -> String
Formats the value using the SATN data format into the returned
String.Source§fn to_satn_pretty(&self) -> String
fn to_satn_pretty(&self) -> String
Pretty prints the value using the SATN data format into the returned
String.