NetlistReader

Trait NetlistReader 

Source
pub trait NetlistReader {
    type Error;

    // Required method
    fn read_into_netlist<R: Read, N: NetlistEdit>(
        &self,
        reader: &mut R,
        netlist: &mut N,
    ) -> Result<(), Self::Error>;

    // Provided method
    fn read_netlist<R: Read, N: NetlistEdit + Default>(
        &self,
        reader: &mut R,
    ) -> Result<N, Self::Error> { ... }
}
Expand description

Read a netlist from a byte stream.

Required Associated Types§

Source

type Error

Type of error that could happen while reading a netlist.

Required Methods§

Source

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§

Source

fn read_netlist<R: Read, N: NetlistEdit + Default>( &self, reader: &mut R, ) -> Result<N, Self::Error>

Read a netlist from a byte stream.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§