pub struct GraphSerializer;Expand description
Serializes a filter graph to various text formats.
Implementations§
Source§impl GraphSerializer
impl GraphSerializer
Sourcepub fn to_dot(graph: &SimpleGraph) -> String
pub fn to_dot(graph: &SimpleGraph) -> String
Produce a valid Graphviz DOT representation of the graph.
digraph G {
0 [label="source"];
1 [label="filter"];
2 [label="sink"];
0 -> 1;
1 -> 2;
}Sourcepub fn to_adjacency_list(graph: &SimpleGraph) -> String
pub fn to_adjacency_list(graph: &SimpleGraph) -> String
Produce a simple adjacency-list text representation.
Auto Trait Implementations§
impl Freeze for GraphSerializer
impl RefUnwindSafe for GraphSerializer
impl Send for GraphSerializer
impl Sync for GraphSerializer
impl Unpin for GraphSerializer
impl UnsafeUnpin for GraphSerializer
impl UnwindSafe for GraphSerializer
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