pub enum LatchPriority {
Set,
Reset,
}Expand description
How an srlatch_next resolves the set && reset (both asserted at once) case — see
logic-signals.md’s own Category 2 for the full reasoning behind Set as the default.
Variants§
Set
set && reset -> latched true. The default: a fault-latch use case should still latch
a fault that occurs in the same step a reset is asserted, not silently clear it.
Reset
set && reset -> latched false. For modeling a real reset-dominant latch chip.
Implementations§
Trait Implementations§
Source§impl Clone for LatchPriority
impl Clone for LatchPriority
impl Copy for LatchPriority
Source§impl Debug for LatchPriority
impl Debug for LatchPriority
impl Eq for LatchPriority
Source§impl PartialEq for LatchPriority
impl PartialEq for LatchPriority
impl StructuralPartialEq for LatchPriority
Auto Trait Implementations§
impl Forget for LatchPriority
impl Freeze for LatchPriority
impl Move for LatchPriority
impl RefUnwindSafe for LatchPriority
impl Send for LatchPriority
impl Sync for LatchPriority
impl Unpin for LatchPriority
impl UnsafeUnpin for LatchPriority
impl UnwindSafe for LatchPriority
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