[][src]Enum xc2bit::XC2MCRegMode

pub enum XC2MCRegMode {
    DFF,
    LATCH,
    TFF,
    DFFCE,
}

Mode of the register in a macrocell.

Variants

DFF

D-type flip-flop

LATCH

Transparent latch

TFF

Toggle flip-flop

DFFCE

D-type flip-flop with clock-enable pin

Methods

impl XC2MCRegMode[src]

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

impl XC2MCRegMode[src]

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

Trait Implementations

impl Clone for XC2MCRegMode[src]

impl Copy for XC2MCRegMode[src]

impl Debug for XC2MCRegMode[src]

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

impl Eq for XC2MCRegMode[src]

impl Hash for XC2MCRegMode[src]

impl PartialEq<XC2MCRegMode> for XC2MCRegMode[src]

impl Serialize for XC2MCRegMode[src]

impl StructuralEq for XC2MCRegMode[src]

impl StructuralPartialEq for XC2MCRegMode[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.