pub struct ScGraph {
pub name: String,
pub ops: Vec<ScOp>,
pub(crate) next_id: u32,
}Expand description
A complete SC compute graph.
Operations are stored in topological order: every operand referenced by an operation must be defined by an earlier operation.
Fields§
§name: StringModule name (used as the SV module name during emission).
ops: Vec<ScOp>Operations in topological (definition) order.
next_id: u32Next available ValueId counter.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ScGraph
Auto Trait Implementations§
impl Freeze for ScGraph
impl RefUnwindSafe for ScGraph
impl Send for ScGraph
impl Sync for ScGraph
impl Unpin for ScGraph
impl UnsafeUnpin for ScGraph
impl UnwindSafe for ScGraph
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