pub struct HydroMermaid<'a, W> { /* private fields */ }Available on crate feature
viz only.Expand description
Mermaid graph writer for Hydro IR.
Implementations§
Source§impl<'a, W> HydroMermaid<'a, W>
impl<'a, W> HydroMermaid<'a, W>
pub fn new(write: W) -> Self
pub fn new_with_config(write: W, config: HydroWriteConfig<'a>) -> Self
Trait Implementations§
Source§impl<W> HydroGraphWrite for HydroMermaid<'_, W>where
W: Write,
impl<W> HydroGraphWrite for HydroMermaid<'_, W>where
W: Write,
Source§fn write_node_definition(
&mut self,
node_id: VizNodeKey,
node_label: &NodeLabel,
node_type: HydroNodeType,
_location_id: Option<LocationKey>,
_location_type: Option<LocationType>,
_backtrace: Option<&Backtrace>,
) -> Result<(), Self::Err>
fn write_node_definition( &mut self, node_id: VizNodeKey, node_label: &NodeLabel, node_type: HydroNodeType, _location_id: Option<LocationKey>, _location_type: Option<LocationType>, _backtrace: Option<&Backtrace>, ) -> Result<(), Self::Err>
Write a node definition with styling.
Source§fn write_edge(
&mut self,
src_id: VizNodeKey,
dst_id: VizNodeKey,
edge_properties: &HashSet<HydroEdgeProp>,
label: Option<&str>,
) -> Result<(), Self::Err>
fn write_edge( &mut self, src_id: VizNodeKey, dst_id: VizNodeKey, edge_properties: &HashSet<HydroEdgeProp>, label: Option<&str>, ) -> Result<(), Self::Err>
Write an edge between nodes with optional labeling.
Source§fn write_location_start(
&mut self,
location_key: LocationKey,
location_type: LocationType,
) -> Result<(), Self::Err>
fn write_location_start( &mut self, location_key: LocationKey, location_type: LocationType, ) -> Result<(), Self::Err>
Begin writing a location grouping (process/cluster).
Source§fn write_node(&mut self, node_id: VizNodeKey) -> Result<(), Self::Err>
fn write_node(&mut self, node_id: VizNodeKey) -> Result<(), Self::Err>
Write a node within a location.
Auto Trait Implementations§
impl<'a, W> Freeze for HydroMermaid<'a, W>where
W: Freeze,
impl<'a, W> RefUnwindSafe for HydroMermaid<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for HydroMermaid<'a, W>where
W: Send,
impl<'a, W> Sync for HydroMermaid<'a, W>where
W: Sync,
impl<'a, W> Unpin for HydroMermaid<'a, W>where
W: Unpin,
impl<'a, W> UnwindSafe for HydroMermaid<'a, W>where
W: 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.