#[non_exhaustive]pub struct SugiyamaConfig {
pub vertex_spacing: f64,
pub minimum_length: u32,
pub dummy_vertices: bool,
pub direction: Direction,
pub rank_alignment: RankAlignment,
}Expand description
Configuration for the Sugiyama layout algorithm.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.vertex_spacing: f64Minimum spacing between vertices (default: 0.0, which uses the
rust-sugiyama default of 10.0).
minimum_length: u32Minimum edge length between layers (default: 0, which uses the
rust-sugiyama default of 1).
dummy_vertices: boolWhether to include dummy vertices in the layout (default: false).
direction: DirectionLayout direction (default: Direction::TopToBottom).
rank_alignment: RankAlignmentHow a rank’s nodes line up on the layer axis (default:
RankAlignment::Center).
Trait Implementations§
Source§impl Clone for SugiyamaConfig
impl Clone for SugiyamaConfig
impl Copy for SugiyamaConfig
Source§impl Debug for SugiyamaConfig
impl Debug for SugiyamaConfig
Auto Trait Implementations§
impl Freeze for SugiyamaConfig
impl RefUnwindSafe for SugiyamaConfig
impl Send for SugiyamaConfig
impl Sync for SugiyamaConfig
impl Unpin for SugiyamaConfig
impl UnsafeUnpin for SugiyamaConfig
impl UnwindSafe for SugiyamaConfig
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