pub struct IndentedGraphWriter<W> {
pub write: W,
pub indent: usize,
pub config: HydroWriteConfig,
}
Expand description
Base struct for text-based graph writers that use indentation. Contains common fields shared by DOT and Mermaid writers.
Fields§
§write: W
§indent: usize
§config: HydroWriteConfig
Implementations§
Source§impl<W> IndentedGraphWriter<W>
impl<W> IndentedGraphWriter<W>
Sourcepub fn new_with_config(write: W, config: &HydroWriteConfig) -> Self
pub fn new_with_config(write: W, config: &HydroWriteConfig) -> Self
Create a new writer with the given configuration.
Source§impl<W: Write> IndentedGraphWriter<W>
impl<W: Write> IndentedGraphWriter<W>
Auto Trait Implementations§
impl<W> Freeze for IndentedGraphWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for IndentedGraphWriter<W>where
W: RefUnwindSafe,
impl<W> Send for IndentedGraphWriter<W>where
W: Send,
impl<W> Sync for IndentedGraphWriter<W>where
W: Sync,
impl<W> Unpin for IndentedGraphWriter<W>where
W: Unpin,
impl<W> UnwindSafe for IndentedGraphWriter<W>where
W: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more