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