pub enum LayoutBackend {
Sugiyama,
Native,
LayeredLegacy,
}Expand description
Selects which layered-layout backend computes node positions.
Default since 0.17.0: Sugiyama.
-
Sugiyama—ascii-dag-backed layout with proper crossing minimisation, long-edge dummy node insertion, and Brandes-Köpf coordinate assignment. Produces cleaner results on acyclic flowcharts, dependency graphs, and state diagrams. Supports subgraphs, parallel-edge widening, and per-subgraphdirectionoverrides. This is the default as of 0.17.0. -
Native— the in-house layered layout. Stable, fast, and respects every feature we ship. Available as an explicit opt-out if you need the legacy spacing contract. -
LayeredLegacy— deprecated alias forNative. Provided as a discoverable escape hatch for callers who relied on the old default behaviour. Will be removed in 0.18.0.
Variants§
Sugiyama
ascii-dag-backed Sugiyama layout — proper crossing minimisation,
dummy node insertion, and Brandes-Köpf coordinate assignment.
This is the default since 0.17.0.
Native
Native in-house layered layout.
LayeredLegacy
LayeredLegacy is an alias for Native and will be removed in 0.18.0. Use LayoutBackend::Native to keep the old layered layout, or remove the explicit backend field to get the new Sugiyama default.
Deprecated alias for [Native]. Will be removed in 0.18.0.
If you depended on the pre-0.17.0 default (the in-house layered
layout), replace this with LayoutBackend::Native. If you are
simply omitting backend from your RenderOptions, the new
default (Sugiyama) will be used automatically.
Trait Implementations§
Source§impl Clone for LayoutBackend
impl Clone for LayoutBackend
Source§fn clone(&self) -> LayoutBackend
fn clone(&self) -> LayoutBackend
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LayoutBackend
impl Debug for LayoutBackend
Source§impl Default for LayoutBackend
impl Default for LayoutBackend
Source§fn default() -> Self
fn default() -> Self
Returns LayoutBackend::Sugiyama — the new default since 0.17.0.
Source§impl PartialEq for LayoutBackend
impl PartialEq for LayoutBackend
Source§fn eq(&self, other: &LayoutBackend) -> bool
fn eq(&self, other: &LayoutBackend) -> bool
self and other values to be equal, and is used by ==.