Enum blif_parser::primitives::Primitives
source · #[repr(u32)]pub enum Primitives {
NOP = 0,
Input {
name: String,
},
Output {
name: String,
},
Lut {
inputs: Vec<String>,
output: String,
table: Vec<Vec<u8>>,
},
Gate {
c: String,
d: String,
q: String,
r: Option<String>,
e: Option<String>,
},
Latch {
input: String,
output: String,
control: String,
init: LatchInit,
},
Subckt {
name: String,
conns: IndexMap<String, String>,
},
Module {
name: String,
inputs: Vec<String>,
outputs: Vec<String>,
elems: Vec<Primitives>,
},
}Variants§
Trait Implementations§
source§impl Clone for Primitives
impl Clone for Primitives
source§fn clone(&self) -> Primitives
fn clone(&self) -> Primitives
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Primitives
impl Debug for Primitives
source§impl Default for Primitives
impl Default for Primitives
source§fn default() -> Primitives
fn default() -> Primitives
Returns the “default value” for a type. Read more
source§impl PartialEq for Primitives
impl PartialEq for Primitives
source§impl Serialize for Primitives
impl Serialize for Primitives
impl StructuralPartialEq for Primitives
Auto Trait Implementations§
impl Freeze for Primitives
impl RefUnwindSafe for Primitives
impl Send for Primitives
impl Sync for Primitives
impl Unpin for Primitives
impl UnwindSafe for Primitives
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)