pub struct In {}
Expand description
This direction marker is used for a [Signal] that is an input with respect to a circuit. That means that we do not expect to write to the input, but that the value will be set by external components to the circuit.
use rust_hdl_core::prelude::*;
struct Foo {
pub x: Signal<In, Bit>, // <--- This is a single bit input
pub y: Signal<In, Bits<8>>, // <--- This is a multi-bit input signal
}
Trait Implementations§
Auto Trait Implementations§
impl Freeze for In
impl RefUnwindSafe for In
impl Send for In
impl Sync for In
impl Unpin for In
impl UnwindSafe for In
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