[−][src]Struct yosys_netlist_json::Netlist
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Netlist
[src]
impl PartialEq<Netlist> for Netlist
[src]
impl Serialize for Netlist
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
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,
[src]
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>,