pub struct Netlist {
pub creator: String,
pub modules: IndexMap<String, Module>,
/* private fields */
}
Fields§
§creator: String
§modules: IndexMap<String, Module>
Implementations§
Source§impl Netlist
impl Netlist
pub fn new(creator: &str) -> Self
pub fn from_reader(reader: impl Read) -> Result<Self, Error>
pub fn from_slice(input: &[u8]) -> Result<Self, Error>
pub fn from_str(input: &str) -> Result<Self, Error>
pub fn from_value(value: Value) -> Result<Self, Error>
pub fn to_writer(&self, writer: impl Write) -> Result<(), Error>
pub fn to_string(&self) -> Result<String, Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Netlist
impl<'de> Deserialize<'de> for Netlist
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Netlist
impl RefUnwindSafe for Netlist
impl Send for Netlist
impl Sync for Netlist
impl Unpin for Netlist
impl UnwindSafe for Netlist
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