Trait libreda_db::netlist::io::NetlistReader
source · [−]pub trait NetlistReader {
type Error;
fn read_into_netlist<R: Read, N: NetlistEdit>(
&self,
reader: &mut R,
netlist: &mut N
) -> Result<(), Self::Error>;
fn read_netlist<R: Read, N: NetlistEdit>(
&self,
reader: &mut R
) -> Result<N, Self::Error> { ... }
}
Expand description
Read a netlist from a byte stream.
Required Associated Types
Required Methods
fn read_into_netlist<R: Read, N: NetlistEdit>(
&self,
reader: &mut R,
netlist: &mut N
) -> Result<(), Self::Error>
fn read_into_netlist<R: Read, N: NetlistEdit>(
&self,
reader: &mut R,
netlist: &mut N
) -> Result<(), Self::Error>
Read a netlist from a byte stream and populate the netlist data structure.
Provided Methods
fn read_netlist<R: Read, N: NetlistEdit>(
&self,
reader: &mut R
) -> Result<N, Self::Error>
fn read_netlist<R: Read, N: NetlistEdit>(
&self,
reader: &mut R
) -> Result<N, Self::Error>
Read a netlist from a byte stream.