[][src]Struct xc2bit::XC2PLAOrTerm

pub struct XC2PLAOrTerm { /* fields omitted */ }

Represents one single OR term in the PLA. Each OR term can perform an OR function on any subset of its inputs. The index for each input is the index of the corresponding AND term in the same PLA.

Methods

impl XC2PLAOrTerm[src]

pub fn from_jed(
    fuses: &[bool],
    block_idx: usize,
    term_idx: usize
) -> XC2PLAOrTerm
[src]

Internal function that reads one single OR term from a block of fuses using logical fuse indexing

pub fn get(&self, i: usize) -> bool[src]

Returns true if the ith AND term is used in this OR term

pub fn set(&mut self, i: usize, val: bool)[src]

Sets whether the ith AND term is used in this OR term

Trait Implementations

impl Clone for XC2PLAOrTerm[src]

impl Copy for XC2PLAOrTerm[src]

impl Debug for XC2PLAOrTerm[src]

impl Default for XC2PLAOrTerm[src]

fn default() -> Self[src]

Returns a "default" OR term. The default state is for none of the inputs to be selected.

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

impl Eq for XC2PLAOrTerm[src]

impl Hash for XC2PLAOrTerm[src]

impl PartialEq<XC2PLAOrTerm> for XC2PLAOrTerm[src]

impl Serialize for XC2PLAOrTerm[src]

impl StructuralEq for XC2PLAOrTerm[src]

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