[][src]Enum xc2bit::XC2MCXorMode

pub enum XC2MCXorMode {
    ZERO,
    ONE,
    PTC,
    PTCB,
}

Mux selection for the "not from OR gate" input to the XOR gate. The XOR gate in a macrocell contains two inputs, the output of the corresponding OR term from the PLA and a specific dedicated AND term from the PLA.

Variants

ZERO

A constant zero which results in this XOR outputting the value of the OR term

ONE

A constant one which results in this XOR outputting the complement of the OR term

PTC

XOR the OR term with the special product term C

PTCB

XNOR the OR term with the special product term C

Methods

impl XC2MCXorMode[src]

pub fn encode(&self) -> (bool, bool)[src]

impl XC2MCXorMode[src]

pub fn decode(x: (bool, bool)) -> Self[src]

Trait Implementations

impl Clone for XC2MCXorMode[src]

impl Copy for XC2MCXorMode[src]

impl Debug for XC2MCXorMode[src]

impl<'de> Deserialize<'de> for XC2MCXorMode[src]

impl Eq for XC2MCXorMode[src]

impl Hash for XC2MCXorMode[src]

impl PartialEq<XC2MCXorMode> for XC2MCXorMode[src]

impl Serialize for XC2MCXorMode[src]

impl StructuralEq for XC2MCXorMode[src]

impl StructuralPartialEq for XC2MCXorMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.