pub struct GraphvizBuilder { /* private fields */ }
Implementations§
Source§impl GraphvizBuilder
impl GraphvizBuilder
pub fn next_id(&mut self) -> usize
pub fn start_graph(&mut self, f: &mut Formatter<'_>) -> Result<(), Error>
pub fn end_graph(&mut self, f: &mut Formatter<'_>) -> Result<(), Error>
pub fn start_cluster( &mut self, f: &mut Formatter<'_>, title: &str, ) -> Result<(), Error>
pub fn end_cluster(&mut self, f: &mut Formatter<'_>) -> Result<(), Error>
Sourcepub fn quoted(label: &str) -> String
pub fn quoted(label: &str) -> String
makes a quoted string suitable for inclusion in a graphviz chart
pub fn add_node( &self, f: &mut Formatter<'_>, id: usize, label: &str, tooltip: Option<&str>, ) -> Result<(), Error>
pub fn add_edge( &self, f: &mut Formatter<'_>, from_id: usize, to_id: usize, ) -> Result<(), Error>
Trait Implementations§
Source§impl Default for GraphvizBuilder
impl Default for GraphvizBuilder
Source§fn default() -> GraphvizBuilder
fn default() -> GraphvizBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphvizBuilder
impl RefUnwindSafe for GraphvizBuilder
impl Send for GraphvizBuilder
impl Sync for GraphvizBuilder
impl Unpin for GraphvizBuilder
impl UnwindSafe for GraphvizBuilder
Blanket Implementations§
Source§impl<T> AsAny for T
impl<T> AsAny for T
Source§fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
fn any_ref(&self) -> &(dyn Any + Sync + Send + 'static)
Obtains a
dyn Any
reference to the object: Read moreSource§fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
fn as_any(self: Arc<T>) -> Arc<dyn Any + Sync + Send>
Obtains an
Arc<dyn Any>
reference to the object: Read moreSource§fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
fn into_any(self: Box<T>) -> Box<dyn Any + Sync + Send>
Converts the object to
Box<dyn Any>
: Read moreSource§fn type_name(&self) -> &'static str
fn type_name(&self) -> &'static str
Convenient wrapper for
std::any::type_name
, since Any
does not provide it and
Any::type_id
is useless as a debugging aid (its Debug
is just a mess of hex digits).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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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.