Enum ecpdap::ECP5IDCODE[][src]

#[repr(u32)]
pub enum ECP5IDCODE {
    LFE5U_12,
    LFE5U_25,
    LFE5U_45,
    LFE5U_85,
    LFE5UM_25,
    LFE5UM_45,
    LFE5UM_85,
    LFE5UM5G_25,
    LFE5UM5G_45,
    LFE5UM5G_85,
}

IDCODEs for all ECP5 device types.

Variants

LFE5U_12
LFE5U_25
LFE5U_45
LFE5U_85
LFE5UM_25
LFE5UM_45
LFE5UM_85
LFE5UM5G_25
LFE5UM5G_45
LFE5UM5G_85

Implementations

impl ECP5IDCODE[src]

pub fn try_from_idcode(idcode: &IDCODE) -> Option<Self>[src]

pub fn name(&self) -> &'static str[src]

Trait Implementations

impl Clone for ECP5IDCODE[src]

impl Copy for ECP5IDCODE[src]

impl Debug for ECP5IDCODE[src]

impl Eq for ECP5IDCODE[src]

impl PartialEq<ECP5IDCODE> for ECP5IDCODE[src]

impl StructuralEq for ECP5IDCODE[src]

impl StructuralPartialEq for ECP5IDCODE[src]

impl TryFrom<u32> for ECP5IDCODE[src]

type Error = TryFromPrimitiveError<Self>

The type returned in the event of a conversion error.

impl TryFromPrimitive for ECP5IDCODE[src]

type Primitive = u32

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> From<T> for T[src]

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

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.