pub struct NetworkStats {Show 15 fields
pub nb_inputs: usize,
pub nb_outputs: usize,
pub nb_and: usize,
pub and_arity: Vec<usize>,
pub nb_xor: usize,
pub xor_arity: Vec<usize>,
pub nb_lut: usize,
pub lut_arity: Vec<usize>,
pub nb_mux: usize,
pub nb_maj: usize,
pub nb_buf: usize,
pub nb_not: usize,
pub nb_dff: usize,
pub nb_dffe: usize,
pub nb_dffr: usize,
}Expand description
Number of inputs, outputs and gates in a network
Fields§
§nb_inputs: usizeNumber of inputs
nb_outputs: usizeNumber of outputs
nb_and: usizeNumber of And and similar gates
and_arity: Vec<usize>Arity of And gates
nb_xor: usizeNumber of Xor and similar gates
xor_arity: Vec<usize>Arity of Xor gates
nb_lut: usizeNumber of Lut and similar gates
lut_arity: Vec<usize>Arity of Lut gates
nb_mux: usizeNumber of Mux
nb_maj: usizeNumber of Maj
nb_buf: usizeNumber of positive Buf
nb_not: usizeNumber of Not (negative Buf)
nb_dff: usizeNumber of Dff
nb_dffe: usizeNumber of Dff with enable
nb_dffr: usizeNumber of Dff with reset
Implementations§
Trait Implementations§
Source§impl Clone for NetworkStats
impl Clone for NetworkStats
Source§fn clone(&self) -> NetworkStats
fn clone(&self) -> NetworkStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkStats
impl Debug for NetworkStats
Auto Trait Implementations§
impl Freeze for NetworkStats
impl RefUnwindSafe for NetworkStats
impl Send for NetworkStats
impl Sync for NetworkStats
impl Unpin for NetworkStats
impl UnwindSafe for NetworkStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more