pub struct Config {Show 13 fields
pub max_label_width: usize,
pub max_edge_label_width: usize,
pub wrap_labels: bool,
pub max_label_lines: usize,
pub crop: bool,
pub pad: usize,
pub strict_parsing: bool,
pub composite_style: CompositeStyle,
pub spacing: SpacingConfig,
pub optimize_render: bool,
pub render_repair_passes: usize,
pub layout_repair_passes: usize,
pub debug_critic: bool,
}Expand description
Application configuration
Fields§
§max_label_width: usize§max_edge_label_width: usizeMaximum edge label width before truncation.
wrap_labels: boolEnable multiline label wrapping (experimental; default off).
max_label_lines: usizeMaximum number of label lines when wrapping is enabled.
crop: boolCrop empty margins around the rendered canvas.
pad: usizeAdd padding (in spaces/lines) around output.
strict_parsing: bool§composite_style: CompositeStyle§spacing: SpacingConfig§optimize_render: boolEnable the render feedback repair loop.
render_repair_passes: usizeMaximum number of local repair passes per render.
layout_repair_passes: usizeMaximum number of layout candidate repair passes per render.
debug_critic: boolEmit critic findings for the rendered frame.
Implementations§
Source§impl Config
impl Config
Sourcepub fn builder() -> ConfigBuilder
pub fn builder() -> ConfigBuilder
Create a new config builder
Sourcepub fn from_parse_config(parse_config: &ParseConfig) -> Self
pub fn from_parse_config(parse_config: &ParseConfig) -> Self
Load configuration from file config + in-file directives Used by the library API
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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