pub struct RenderOptions {
pub ascii: bool,
pub max_width: Option<usize>,
pub padding_x: usize,
pub padding_y: usize,
pub border_padding: usize,
pub colors: bool,
}Expand description
Options for rendering the diagram
Fields§
§ascii: boolUse ASCII characters instead of Unicode
max_width: Option<usize>Maximum width constraint for the diagram
padding_x: usizeHorizontal gap between nodes (default: 8)
padding_y: usizeVertical gap between nodes (default: 4)
border_padding: usizePadding between text and node border (default: 1)
colors: boolEnable ANSI color output (default: false)
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RenderOptions
impl Debug for RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnwindSafe for RenderOptions
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