HomogeneousNetwork

Trait HomogeneousNetwork 

Source
pub trait HomogeneousNetwork: Network {
    const NUM_NODE_INPUTS: usize;

    // Required method
    fn function(&self) -> Self::NodeFunction;
}
Expand description

A logic network where all nodes implement the same boolean function.

Required Associated Constants§

Source

const NUM_NODE_INPUTS: usize

Number of inputs of a node.

Required Methods§

Source

fn function(&self) -> Self::NodeFunction

Get the logic function of a node.

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§