#[non_exhaustive]pub enum OutputFunction<PinId> {
Unknown,
Comb(BooleanFn<PinId>),
Sequential(Sequential<PinId>),
}Expand description
Either a combinational/boolean function or a state-holding element.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
The output function of the pin is not known.
Comb(BooleanFn<PinId>)
Combinational logic: The value of the output pin is defined by a boolean function.
Sequential(Sequential<PinId>)
Sequential logic: The value of the output pin is defined by a state-holding element.
Trait Implementations§
source§impl<PinId: Clone> Clone for OutputFunction<PinId>
impl<PinId: Clone> Clone for OutputFunction<PinId>
source§fn clone(&self) -> OutputFunction<PinId>
fn clone(&self) -> OutputFunction<PinId>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<PinId: Debug> Debug for OutputFunction<PinId>
impl<PinId: Debug> Debug for OutputFunction<PinId>
source§impl<PinId> Default for OutputFunction<PinId>
impl<PinId> Default for OutputFunction<PinId>
source§fn default() -> OutputFunction<PinId>
fn default() -> OutputFunction<PinId>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<PinId> Freeze for OutputFunction<PinId>where
PinId: Freeze,
impl<PinId> RefUnwindSafe for OutputFunction<PinId>where
PinId: RefUnwindSafe,
impl<PinId> Send for OutputFunction<PinId>where
PinId: Send,
impl<PinId> Sync for OutputFunction<PinId>where
PinId: Sync,
impl<PinId> Unpin for OutputFunction<PinId>where
PinId: Unpin,
impl<PinId> UnwindSafe for OutputFunction<PinId>where
PinId: UnwindSafe,
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