pub struct CircuitNodeMeta {
pub layer_idx: usize,
pub node_id: usize,
pub kind: LayerKind,
pub input_shape: (usize, usize),
pub output_shape: (usize, usize),
pub trace_cost: usize,
pub input_layers: Vec<usize>,
}Expand description
A single node in the circuit DAG (static metadata emitted in CircuitCompiled).
Fields§
§layer_idx: usize§node_id: usize§kind: LayerKind§input_shape: (usize, usize)§output_shape: (usize, usize)§trace_cost: usizeEstimated number of trace cells (used as node radius in 3D view).
input_layers: Vec<usize>Predecessor layer indices in the LayeredCircuit.
Trait Implementations§
Source§impl Clone for CircuitNodeMeta
impl Clone for CircuitNodeMeta
Source§fn clone(&self) -> CircuitNodeMeta
fn clone(&self) -> CircuitNodeMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CircuitNodeMeta
impl Debug for CircuitNodeMeta
Source§impl<'de> Deserialize<'de> for CircuitNodeMeta
impl<'de> Deserialize<'de> for CircuitNodeMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CircuitNodeMeta
impl RefUnwindSafe for CircuitNodeMeta
impl Send for CircuitNodeMeta
impl Sync for CircuitNodeMeta
impl Unpin for CircuitNodeMeta
impl UnsafeUnpin for CircuitNodeMeta
impl UnwindSafe for CircuitNodeMeta
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