pub trait DirectionProvider {
// Required method
fn direction_of(
&self,
macro_name: &Substr,
pin_name: &Substr,
pin_idx: Option<isize>,
) -> Direction;
// Provided method
fn should_warn_missing_directions(&self) -> bool { ... }
}
Expand description
Direction provider trait.
Downstream databases (e.g., Liberty library or LEF/DEF library) should implement this to provide pin direction information used in constructing NetlistDB.
Required Methods§
Provided Methods§
Sourcefn should_warn_missing_directions(&self) -> bool
fn should_warn_missing_directions(&self) -> bool
This function allows downstream databases to specify whether there should be a warning on unspecified directions when building netlist.