pub struct HydroGraphStructure {
pub nodes: SlotMap<VizNodeKey, HydroGraphNode>,
pub edges: Vec<HydroGraphEdge>,
pub locations: SecondaryMap<LocationKey, LocationType>,
}Available on crate feature
viz only.Expand description
Graph structure tracker for Hydro IR rendering.
Fields§
§nodes: SlotMap<VizNodeKey, HydroGraphNode>§edges: Vec<HydroGraphEdge>§locations: SecondaryMap<LocationKey, LocationType>Implementations§
Source§impl HydroGraphStructure
impl HydroGraphStructure
pub fn new() -> Self
pub fn add_node( &mut self, label: NodeLabel, node_type: HydroNodeType, location_key: Option<LocationKey>, ) -> VizNodeKey
pub fn add_node_with_backtrace( &mut self, label: NodeLabel, node_type: HydroNodeType, location_key: Option<LocationKey>, backtrace: Option<Backtrace>, ) -> VizNodeKey
Sourcepub fn add_node_with_metadata(
&mut self,
label: NodeLabel,
node_type: HydroNodeType,
metadata: &HydroIrMetadata,
) -> VizNodeKey
pub fn add_node_with_metadata( &mut self, label: NodeLabel, node_type: HydroNodeType, metadata: &HydroIrMetadata, ) -> VizNodeKey
Add a node with metadata, extracting backtrace automatically
pub fn add_edge( &mut self, src: VizNodeKey, dst: VizNodeKey, edge_properties: HashSet<HydroEdgeProp>, label: Option<String>, )
pub fn add_edge_single( &mut self, src: VizNodeKey, dst: VizNodeKey, edge_type: HydroEdgeProp, label: Option<String>, )
pub fn add_location( &mut self, location_key: LocationKey, location_type: LocationType, )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HydroGraphStructure
impl !Send for HydroGraphStructure
impl !Sync for HydroGraphStructure
impl Forget for HydroGraphStructure
impl Freeze for HydroGraphStructurewhere
*const u8 is !null: Freeze,
PhantomData<Slot<HydroGraphNode>>: Freeze,
PhantomData<fn(VizNodeKey) -> VizNodeKey>: Freeze,
PhantomData<HydroGraphEdge>: Freeze,
PhantomData<Slot<LocationType>>: Freeze,
PhantomData<fn(LocationKey) -> LocationKey>: Freeze,
impl Move for HydroGraphStructure
impl Unpin for HydroGraphStructure
impl UnsafeUnpin for HydroGraphStructurewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Slot<HydroGraphNode>>: UnsafeUnpin,
PhantomData<fn(VizNodeKey) -> VizNodeKey>: UnsafeUnpin,
PhantomData<HydroGraphEdge>: UnsafeUnpin,
PhantomData<Slot<LocationType>>: UnsafeUnpin,
PhantomData<fn(LocationKey) -> LocationKey>: UnsafeUnpin,
impl UnwindSafe for HydroGraphStructurewhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
NonZero<u32>: UnwindSafe,
*mut _Unwind_Context: UnwindSafe,
*mut c_void: UnwindSafe,
BoxRaw<[BacktraceSymbol]>: UnwindSafe,
OnceLock<BacktraceFrame>: UnwindSafe,
NonNull<u8>: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreCreates a shared type from an unshared type.