Struct logic_circus::ComponentBuilder [−][src]
pub struct ComponentBuilder<Rust = Infallible> { /* fields omitted */ }
Expand description
The constructor for Component
you create one with Component::builder()
use gate
to add another inner gate
use inputs
to set the input locations and
finalize construction (get your final Component
)
put a gate implemented in rust (or an enum of them) in <Rust>
to use it
(or them)
Implementations
Add a gate to the component
gate
is the gate you want to add.
sequals
dictate where the outputs of the gate go, in other words the
wiring, these sequal
s are in order, so the gate
’s first output
will go to the first sequal
and so on.
a sequal can either be another gate or one of the components outputs.
if you want to send an output to several places it must be done
indirectly, you should take a look at Gate::dup
.
Trait Implementations
Auto Trait Implementations
impl<Rust> RefUnwindSafe for ComponentBuilder<Rust> where
Rust: RefUnwindSafe,
impl<Rust> Send for ComponentBuilder<Rust> where
Rust: Send,
impl<Rust> Sync for ComponentBuilder<Rust> where
Rust: Sync,
impl<Rust> Unpin for ComponentBuilder<Rust> where
Rust: Unpin,
impl<Rust> UnwindSafe for ComponentBuilder<Rust> where
Rust: UnwindSafe,