pub trait Gate {
// Required methods
fn pbits(&self) -> &Vec<GridPbit>;
fn shape(&self) -> (usize, usize);
fn weight(&self) -> &DMatrix<i32>;
fn bias(&self) -> &Vec<i32>;
}Required Methods§
fn pbits(&self) -> &Vec<GridPbit>
fn shape(&self) -> (usize, usize)
fn weight(&self) -> &DMatrix<i32>
fn bias(&self) -> &Vec<i32>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".