mod funcs_for_binary_core;
mod impls_for_count_ones;
mod impls_for_not;
mod impls_for_shl;
mod impls_for_shr;
use alloc::vec::Vec;
use crate::bit_string::errors::BitStringLenMismatch;
use super::*;
impl BitString {
#[inline]
fn require_same_len(&self, rhs: &Self) -> Result<(), BitStringLenMismatch> {
if self.len == rhs.len {
Ok(())
} else {
Err(BitStringLenMismatch {
lhs_len: self.len,
rhs_len: rhs.len,
})
}
}
}