pub struct BitSeq { /* private fields */ }Implementations§
Source§impl BitSeq
impl BitSeq
pub const MAX_LEN: usize = 64usize
pub fn new(val: u64, len: usize) -> Self
pub fn new_rev(val: u64, len: usize) -> Self
pub fn empty() -> Self
pub fn zeros(len: usize) -> Self
pub fn ones(len: usize) -> Self
pub fn len(&self) -> usize
pub fn as_u64(&self) -> u64
pub fn is_empty(&self) -> bool
pub fn weight(&self) -> usize
pub fn iter(&self) -> impl Iterator<Item = Bit>
pub fn set(&mut self, i: usize, b: Bit)
pub fn set_0(&mut self, i: usize)
pub fn set_1(&mut self, i: usize)
pub fn push(&mut self, b: Bit)
pub fn push_0(&mut self)
pub fn push_1(&mut self)
pub fn append(&mut self, b: BitSeq)
pub fn remove(&mut self, i: usize)
pub fn insert(&mut self, i: usize, b: Bit)
pub fn insert_0(&mut self, i: usize)
pub fn insert_1(&mut self, i: usize)
pub fn edit<F>(&self, f: F) -> Self
pub fn sub(&self, l: usize) -> Self
pub fn is_sub(&self, other: &Self) -> bool
pub fn generate(len: usize) -> impl Iterator<Item = BitSeq>
Trait Implementations§
Source§impl AddAssign<&Bit> for BitSeq
impl AddAssign<&Bit> for BitSeq
Source§fn add_assign(&mut self, rhs: &Bit)
fn add_assign(&mut self, rhs: &Bit)
Performs the
+= operation. Read moreSource§impl AddAssign<&BitSeq> for BitSeq
impl AddAssign<&BitSeq> for BitSeq
Source§fn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the
+= operation. Read moreSource§impl AddAssign<Bit> for BitSeq
impl AddAssign<Bit> for BitSeq
Source§fn add_assign(&mut self, b: Bit)
fn add_assign(&mut self, b: Bit)
Performs the
+= operation. Read moreSource§impl AddAssign for BitSeq
impl AddAssign for BitSeq
Source§fn add_assign(&mut self, rhs: BitSeq)
fn add_assign(&mut self, rhs: BitSeq)
Performs the
+= operation. Read moreSource§impl<T> FromIterator<T> for BitSeq
impl<T> FromIterator<T> for BitSeq
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl Ord for BitSeq
impl Ord for BitSeq
Source§impl PartialOrd for BitSeq
impl PartialOrd for BitSeq
impl Copy for BitSeq
impl Eq for BitSeq
impl StructuralPartialEq for BitSeq
Auto Trait Implementations§
impl Freeze for BitSeq
impl RefUnwindSafe for BitSeq
impl Send for BitSeq
impl Sync for BitSeq
impl Unpin for BitSeq
impl UnwindSafe for BitSeq
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more