Trait substrate::schematic::netlist::ConvertibleNetlister
source · pub trait ConvertibleNetlister<S: Schema + ?Sized> {
type Error: Into<Error>;
type Options<'a>;
// Required method
fn write_scir_netlist<W: Write>(
&self,
lib: &Library<S>,
out: &mut W,
opts: Self::Options<'_>
) -> Result<NetlistLibConversion, Self::Error>;
// Provided methods
fn write_scir_netlist_to_file(
&self,
lib: &Library<S>,
path: impl AsRef<Path>,
opts: Self::Options<'_>
) -> Result<NetlistLibConversion> { ... }
fn write_netlist<B: Schematic<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<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.
Required Associated Types§
Required Methods§
sourcefn write_scir_netlist<W: Write>(
&self,
lib: &Library<S>,
out: &mut W,
opts: Self::Options<'_>
) -> Result<NetlistLibConversion, Self::Error>
fn write_scir_netlist<W: Write>( &self, lib: &Library<S>, out: &mut W, opts: Self::Options<'_> ) -> Result<NetlistLibConversion, Self::Error>
Writes a netlist of a SCIR library to the provided output stream.
Provided Methods§
sourcefn write_scir_netlist_to_file(
&self,
lib: &Library<S>,
path: impl AsRef<Path>,
opts: Self::Options<'_>
) -> Result<NetlistLibConversion>
fn write_scir_netlist_to_file( &self, lib: &Library<S>, path: impl AsRef<Path>, opts: Self::Options<'_> ) -> Result<NetlistLibConversion>
Writes a netlist of a SCIR library to a file at the given path.
The file and any parent directories will be created if necessary.
sourcefn write_netlist<B: Schematic<S>, W: Write>(
&self,
ctx: &Context,
block: B,
out: &mut W,
opts: Self::Options<'_>
) -> Result<(RawLib<S>, NetlistLibConversion)>
fn write_netlist<B: Schematic<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.
sourcefn write_netlist_to_file<B: Schematic<S>>(
&self,
ctx: &Context,
block: B,
path: impl AsRef<Path>,
opts: Self::Options<'_>
) -> Result<(RawLib<S>, NetlistLibConversion)>
fn write_netlist_to_file<B: Schematic<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.
Object Safety§
This trait is not object safe.