pub enum ExpectedValue {
Value(i64),
Z,
X,
}Expand description
Represent an expected output value
Variants§
Value(i64)
A driven signal with a particular value
Z
A high-Z signal
X
Don’t care: match any output value
Implementations§
Source§impl ExpectedValue
impl ExpectedValue
Sourcepub fn check(&self, other: impl Into<OutputValue>) -> bool
pub fn check(&self, other: impl Into<OutputValue>) -> bool
Check if the output value matches the expected value
The values are essentially compared for equality,
except an expected value of X matches any output value
Trait Implementations§
Source§impl Clone for ExpectedValue
impl Clone for ExpectedValue
Source§fn clone(&self) -> ExpectedValue
fn clone(&self) -> ExpectedValue
Returns a duplicate of the value. Read more
1.0.0 · 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 ExpectedValue
impl Debug for ExpectedValue
Source§impl Display for ExpectedValue
impl Display for ExpectedValue
Source§impl Hash for ExpectedValue
impl Hash for ExpectedValue
Source§impl PartialEq for ExpectedValue
impl PartialEq for ExpectedValue
impl Copy for ExpectedValue
impl Eq for ExpectedValue
impl StructuralPartialEq for ExpectedValue
Auto Trait Implementations§
impl Freeze for ExpectedValue
impl RefUnwindSafe for ExpectedValue
impl Send for ExpectedValue
impl Sync for ExpectedValue
impl Unpin for ExpectedValue
impl UnwindSafe for ExpectedValue
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