pub struct OrGate { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Gate for OrGate
impl Gate for OrGate
Source§fn input_pin_count(&self) -> usize
fn input_pin_count(&self) -> usize
Returns the number of input pins for this gate.
Source§fn output_pin_count(&self) -> usize
fn output_pin_count(&self) -> usize
Returns the number of output pins for this gate (usually 1).
Source§fn update(&mut self, inputs: &[LogicLevel])
fn update(&mut self, inputs: &[LogicLevel])
Updates the gate’s internal state (if any) and calculates the output
based on the provided input levels. Read more
Source§fn get_output(&self, pin_index: usize) -> LogicLevel
fn get_output(&self, pin_index: usize) -> LogicLevel
Gets the current logic level of the specified output pin. Read more
impl Copy for OrGate
Auto Trait Implementations§
impl Freeze for OrGate
impl RefUnwindSafe for OrGate
impl Send for OrGate
impl Sync for OrGate
impl Unpin for OrGate
impl UnsafeUnpin for OrGate
impl UnwindSafe for OrGate
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