pub struct MermaidFormatOpts<'a> { /* private fields */ }Implementations§
Source§impl<'a> MermaidFormatOpts<'a>
impl<'a> MermaidFormatOpts<'a>
Sourcepub fn hide_nodes(self, hide: bool) -> Self
pub fn hide_nodes(self, hide: bool) -> Self
Sets whether to hide NODE identifiers in the tree representation (default is false).
Sourcepub fn monochrome(self, monochrome: bool) -> Self
pub fn monochrome(self, monochrome: bool) -> Self
When set to true, the tree representation will use a monochrome color scheme (default is false).
Sourcepub fn theme(self, theme: MermaidTheme) -> Self
pub fn theme(self, theme: MermaidTheme) -> Self
Sets the theme for the tree representation (default is Default).
Sourcepub fn orientation(self, orientation: MermaidOrientation) -> Self
pub fn orientation(self, orientation: MermaidOrientation) -> Self
Sets the orientation of the tree representation (default is LeftToRight).
Sourcepub fn highlighting_target(self, target: HashSet<Digest>) -> Self
pub fn highlighting_target(self, target: HashSet<Digest>) -> Self
Sets the set of digests to highlight in the tree representation.
Sourcepub fn context(self, context: FormatContextOpt<'a>) -> Self
pub fn context(self, context: FormatContextOpt<'a>) -> Self
Sets the formatting context for the tree representation.
Trait Implementations§
Source§impl<'a> Clone for MermaidFormatOpts<'a>
impl<'a> Clone for MermaidFormatOpts<'a>
Source§fn clone(&self) -> MermaidFormatOpts<'a>
fn clone(&self) -> MermaidFormatOpts<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for MermaidFormatOpts<'a>
impl<'a> !RefUnwindSafe for MermaidFormatOpts<'a>
impl<'a> Send for MermaidFormatOpts<'a>
impl<'a> Sync for MermaidFormatOpts<'a>
impl<'a> Unpin for MermaidFormatOpts<'a>
impl<'a> !UnwindSafe for MermaidFormatOpts<'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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