pub struct TreeLayout { /* private fields */ }Expand description
Tree layout engine.
Implementations§
Source§impl TreeLayout
impl TreeLayout
Sourcepub fn with_algorithm(self, algorithm: TreeLayoutAlgorithm) -> Self
pub fn with_algorithm(self, algorithm: TreeLayoutAlgorithm) -> Self
Sets the layout algorithm and returns the modified engine.
Sourcepub fn with_config(self, config: TreeLayoutConfig) -> Self
pub fn with_config(self, config: TreeLayoutConfig) -> Self
Sets the layout configuration and returns the modified engine.
Sourcepub fn visualize(&self, tree: &TreeNode) -> Result<String>
pub fn visualize(&self, tree: &TreeNode) -> Result<String>
Visualizes the tree as an SVG string.
Sourcepub fn layout_tree(&self, tree: &TreeNode) -> Result<Layout>
pub fn layout_tree(&self, tree: &TreeNode) -> Result<Layout>
Calculates the layout for the given tree.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeLayout
impl RefUnwindSafe for TreeLayout
impl Send for TreeLayout
impl Sync for TreeLayout
impl Unpin for TreeLayout
impl UnsafeUnpin for TreeLayout
impl UnwindSafe for TreeLayout
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