pub struct DotExporter;Expand description
Export an EinsumGraph to Graphviz DOT format.
This wraps the lower-level tensorlogic_ir::export_to_dot_with_options with
the CLI-level VisualizationConfig and optionally strips colour attributes
when use_color is false.
Implementations§
Source§impl DotExporter
impl DotExporter
Sourcepub fn export(graph: &EinsumGraph, config: &VisualizationConfig) -> String
pub fn export(graph: &EinsumGraph, config: &VisualizationConfig) -> String
Export a graph to a DOT format string.
Auto Trait Implementations§
impl Freeze for DotExporter
impl RefUnwindSafe for DotExporter
impl Send for DotExporter
impl Sync for DotExporter
impl Unpin for DotExporter
impl UnsafeUnpin for DotExporter
impl UnwindSafe for DotExporter
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> 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