pub struct Shot<const N: usize> {
pub trigger: Signal<In, Bit>,
pub active: Signal<Out, Bit>,
pub clock: Signal<In, Clock>,
pub fired: Signal<Out, Bit>,
/* private fields */
}
Fields
trigger: Signal<In, Bit>
active: Signal<Out, Bit>
clock: Signal<In, Clock>
fired: Signal<Out, Bit>
Implementations
Trait Implementations
sourceimpl<const N: usize> Block for Shot<N>
impl<const N: usize> Block for Shot<N>
sourcefn connect_all(&mut self)
fn connect_all(&mut self)
Connects the internal signals of the circuit - used to initialize the circuit
sourcefn update_all(&mut self)
fn update_all(&mut self)
Propogate changes from inputs to outputs within the circuit
sourcefn has_changed(&self) -> bool
fn has_changed(&self) -> bool
Returns true
if anything in the circuit has changed (outputs or internal state)
Auto Trait Implementations
impl<const N: usize> RefUnwindSafe for Shot<N>
impl<const N: usize> Send for Shot<N>
impl<const N: usize> Sync for Shot<N>
impl<const N: usize> Unpin for Shot<N>
impl<const N: usize> UnwindSafe for Shot<N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more