pub struct DotWrite<'a, 'b> { /* private fields */ }Expand description
A write target for Dot graphs. Use with the write! macro.
Implementations§
Source§impl<'a, 'b> DotWrite<'a, 'b>
impl<'a, 'b> DotWrite<'a, 'b>
Sourcepub fn set_escape_backslashes(&mut self, escape_backslashes: bool)
pub fn set_escape_backslashes(&mut self, escape_backslashes: bool)
Sets a config option for whether backslashes should be escaped. Defaults to true.
This can be set to false if the visitor knows to output graphviz control characters.
Sourcepub fn write_fmt(&mut self, args: Arguments<'_>) -> Result
pub fn write_fmt(&mut self, args: Arguments<'_>) -> Result
Glue for usage of the write! macro.
This method should generally not be invoked manually, but rather through write! or similar
macros (println!, format! etc).
Defining this inherent method allows write! to work without callers needing to import the
std::fmt::Write trait.
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for DotWrite<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for DotWrite<'a, 'b>
impl<'a, 'b> !Send for DotWrite<'a, 'b>
impl<'a, 'b> !Sync for DotWrite<'a, 'b>
impl<'a, 'b> Unpin for DotWrite<'a, 'b>
impl<'a, 'b> !UnwindSafe for DotWrite<'a, 'b>
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