pub struct RecursiveSim<'a, N> { /* private fields */ }
Expand description
Very simple network simulator. Not so efficient though.
Implementations§
Source§impl<'a, N> RecursiveSim<'a, N>
impl<'a, N> RecursiveSim<'a, N>
Source§impl<'a, N> RecursiveSim<'a, N>
impl<'a, N> RecursiveSim<'a, N>
Sourcepub fn simulate(
&self,
outputs: &'a [N::Signal],
inputs: &[N::LogicValue],
) -> impl Iterator<Item = N::LogicValue> + 'a
pub fn simulate( &self, outputs: &'a [N::Signal], inputs: &[N::LogicValue], ) -> impl Iterator<Item = N::LogicValue> + 'a
Simulate the values of the specified outputs
given the primary inputs.
Trait Implementations§
Source§impl<'a, N> BooleanSystem for RecursiveSim<'a, N>
impl<'a, N> BooleanSystem for RecursiveSim<'a, N>
Source§impl<'a, N: Network> NumInputs for RecursiveSim<'a, N>
impl<'a, N: Network> NumInputs for RecursiveSim<'a, N>
Source§fn num_inputs(&self) -> usize
fn num_inputs(&self) -> usize
Get the number of inputs of the boolean function.
Source§impl<'a, N: Network> NumOutputs for RecursiveSim<'a, N>
impl<'a, N: Network> NumOutputs for RecursiveSim<'a, N>
Source§fn num_outputs(&self) -> usize
fn num_outputs(&self) -> usize
Get the number of outputs of the boolean function.
Source§impl<'a, N> PartialBooleanSystem for RecursiveSim<'a, N>
impl<'a, N> PartialBooleanSystem for RecursiveSim<'a, N>
Auto Trait Implementations§
impl<'a, N> Freeze for RecursiveSim<'a, N>
impl<'a, N> RefUnwindSafe for RecursiveSim<'a, N>where
N: RefUnwindSafe,
impl<'a, N> Send for RecursiveSim<'a, N>where
N: Sync,
impl<'a, N> Sync for RecursiveSim<'a, N>where
N: Sync,
impl<'a, N> Unpin for RecursiveSim<'a, N>
impl<'a, N> UnwindSafe for RecursiveSim<'a, N>where
N: RefUnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more