Trait Synth

Source
pub trait Synth:
    Default
    + Copy
    + PartialEq
    + Debug {
    const BITS: usize;

    // Required methods
    fn descriptor() -> TypeDescriptor;
    fn vcd(self) -> VCDValue;
    fn verilog(self) -> VerilogLiteral;

    // Provided method
    fn bits(self) -> usize { ... }
}

Required Associated Constants§

Required Methods§

Source

fn descriptor() -> TypeDescriptor

Source

fn vcd(self) -> VCDValue

Source

fn verilog(self) -> VerilogLiteral

Provided Methods§

Source

fn bits(self) -> usize

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§

Source§

impl Synth for Clock

Source§

const BITS: usize = 1usize

Source§

impl Synth for Bit

Source§

const BITS: usize = 1usize

Source§

impl<const N: usize> Synth for Bits<N>

Source§

const BITS: usize = N

Source§

impl<const N: usize> Synth for Signed<N>

Source§

const BITS: usize = N