nl_compiler/
cells.rs

1/*!
2
3  Traits to abstract mapping symbols to gates.
4
5*/
6
7use safety_net::Error;
8use safety_net::Identifier;
9
10/// A trait to specify how to map primitive instantiation names ([Identifier]s) to the instance [safety_net::Instantiable] type.
11pub trait FromId: Sized {
12    /// Maps primitive instantiation names ([Identifier]s) to the instance [safety_net::Instantiable] type.
13    fn from_id(s: &Identifier) -> Result<Self, Error>;
14}