pub struct LogicArray { /* private fields */ }Expand description
A fixed-width vector of 4-state bits, MSB first (binstr order).
Implementations§
Source§impl LogicArray
impl LogicArray
pub fn from_binstr(s: &str) -> LogicArray
pub fn from_u64(v: u64, width: usize) -> LogicArray
pub fn to_binstr(&self) -> String
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_resolvable(&self) -> bool
pub fn to_u64(&self) -> Result<u64, ValueError>
Trait Implementations§
Source§impl Clone for LogicArray
impl Clone for LogicArray
Source§fn clone(&self) -> LogicArray
fn clone(&self) -> LogicArray
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogicArray
impl Debug for LogicArray
Source§impl Display for LogicArray
impl Display for LogicArray
impl Eq for LogicArray
Source§impl PartialEq for LogicArray
impl PartialEq for LogicArray
impl StructuralPartialEq for LogicArray
Auto Trait Implementations§
impl Freeze for LogicArray
impl RefUnwindSafe for LogicArray
impl Send for LogicArray
impl Sync for LogicArray
impl Unpin for LogicArray
impl UnsafeUnpin for LogicArray
impl UnwindSafe for LogicArray
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