#[non_exhaustive]pub struct SugiyamaConfig {
pub vertex_spacing: f64,
pub minimum_length: u32,
pub dummy_vertices: bool,
pub direction: Direction,
}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).
Trait Implementations§
Source§impl Clone for SugiyamaConfig
impl Clone for SugiyamaConfig
Source§fn clone(&self) -> SugiyamaConfig
fn clone(&self) -> SugiyamaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SugiyamaConfig
Source§impl Debug for SugiyamaConfig
impl Debug for SugiyamaConfig
Source§impl Default for SugiyamaConfig
impl Default for SugiyamaConfig
Source§fn default() -> SugiyamaConfig
fn default() -> SugiyamaConfig
Returns the “default value” for a type. Read more
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