substrate::schematic::netlist

Trait ConvertibleNetlister

Source
pub trait ConvertibleNetlister<S: Schema + ?Sized>: ConvertibleNetlister<S, Error: Into<Error>> {
    // Provided methods
    fn write_netlist<B: Schematic<Schema = S>, W: Write>(
        &self,
        ctx: &Context,
        block: B,
        out: &mut W,
        opts: Self::Options<'_>,
    ) -> Result<(RawLib<S>, NetlistLibConversion)> { ... }
    fn write_netlist_to_file<B: Schematic<Schema = S>>(
        &self,
        ctx: &Context,
        block: B,
        path: impl AsRef<Path>,
        opts: Self::Options<'_>,
    ) -> Result<(RawLib<S>, NetlistLibConversion)> { ... }
}
Expand description

A netlister that tracks how cells and instances are translated between SCIR and the output netlist format.

Provided Methods§

Source

fn write_netlist<B: Schematic<Schema = S>, W: Write>( &self, ctx: &Context, block: B, out: &mut W, opts: Self::Options<'_>, ) -> Result<(RawLib<S>, NetlistLibConversion)>

Writes a netlist of a Substrate block to the given output stream.

Source

fn write_netlist_to_file<B: Schematic<Schema = S>>( &self, ctx: &Context, block: B, path: impl AsRef<Path>, opts: Self::Options<'_>, ) -> Result<(RawLib<S>, NetlistLibConversion)>

Writes a netlist of a Substrate block to a file at the given path.

The file and any parent directories will be created if necessary.

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§