HasConst

Trait HasConst 

Source
pub trait HasConst<T> {
    // Required method
    fn constant(&self) -> Option<T>;
}

Required Methods§

Source

fn constant(&self) -> Option<T>

For gates that include constant data (AddConst, MulConst, etc) provides a method to access the constant. Returns None for all other types of gates.

Implementors§