[−][src]Struct xc2bit::XC2PLAOrTerm
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]
fuses: &[bool],
block_idx: usize,
term_idx: usize
) -> XC2PLAOrTerm
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 i
th AND term is used in this OR term
pub fn set(&mut self, i: usize, val: bool)
[src]
Sets whether the i
th AND term is used in this OR term
Trait Implementations
impl Clone for XC2PLAOrTerm
[src]
fn clone(&self) -> XC2PLAOrTerm
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for XC2PLAOrTerm
[src]
impl Hash for XC2PLAOrTerm
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<XC2PLAOrTerm> for XC2PLAOrTerm
[src]
fn eq(&self, other: &XC2PLAOrTerm) -> bool
[src]
fn ne(&self, other: &XC2PLAOrTerm) -> bool
[src]
impl Serialize for XC2PLAOrTerm
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for XC2PLAOrTerm
[src]
impl StructuralPartialEq for XC2PLAOrTerm
[src]
Auto Trait Implementations
impl RefUnwindSafe for XC2PLAOrTerm
impl Send for XC2PLAOrTerm
impl Sync for XC2PLAOrTerm
impl Unpin for XC2PLAOrTerm
impl UnwindSafe for XC2PLAOrTerm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,