[][src]Struct yosys_netlist_json::Netlist

pub struct Netlist {
    pub creator: String,
    pub modules: HashMap<String, Module>,
}

Represents an entire .json file used by Yosys

Fields

creator: String

The program that created this file.

modules: HashMap<String, Module>

A map from module names to module objects contained in this .json file

Methods

impl Netlist[src]

pub fn from_reader<R: Read>(reader: R) -> Result<Netlist, Error>[src]

Read netlist data from a reader

pub fn from_slice(input: &[u8]) -> Result<Netlist, Error>[src]

Read netlist data from a slice containing the bytes from a Yosys .json file

pub fn to_string(&self) -> Result<String, Error>[src]

Serialize to a String

pub fn to_writer<W: Write>(&self, writer: W) -> Result<(), Error>[src]

Serialize to a writer

Trait Implementations

impl Clone for Netlist[src]

impl Debug for Netlist[src]

impl Default for Netlist[src]

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

impl Eq for Netlist[src]

impl PartialEq<Netlist> for Netlist[src]

impl Serialize for Netlist[src]

impl StructuralEq for Netlist[src]

impl StructuralPartialEq for Netlist[src]

Auto Trait Implementations

impl RefUnwindSafe for Netlist

impl Send for Netlist

impl Sync for Netlist

impl Unpin for Netlist

impl UnwindSafe for Netlist

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
[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.