Struct VarBitSet

pub struct VarBitSet(/* private field */);

A bit set is a set of bit flags.

Implementations

impl VarBitSet

fn saturated(len: usize) -> Self

Create a bit set of len set values.

Trait Implementations

impl BitSetLike for VarBitSet

fn new_bitset(max: usize) -> Self
fn len(&self) -> usize
fn test(&self, bit: usize) -> bool
fn set(&mut self, bit: usize)
fn clear(&mut self, bit: usize)
fn count(&self) -> usize

impl Clone for VarBitSet

fn clone(&self) -> VarBitSet

impl Debug for VarBitSet

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

impl FromIterator<usize> for VarBitSet

fn from_iter<T: IntoIterator<Item = usize>>(into_iter: T) -> Self

Auto Trait Implementations

impl Freeze for VarBitSet

impl RefUnwindSafe for VarBitSet

impl Send for VarBitSet

impl Sync for VarBitSet

impl Unpin for VarBitSet

impl UnsafeUnpin for VarBitSet

impl UnwindSafe for VarBitSet

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for VarBitSet where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for VarBitSet where ST: ?Sized, DT: ?Sized,

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for VarBitSet

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Read<Exclusive, BecauseExclusive> for VarBitSet where T: ?Sized,

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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

impl<V, T> VZip<V> for VarBitSet where V: MultiLane<T>,

fn vzip(self) -> V