pub struct TreeLayout { /* private fields */ }Expand description
Tree layout engine
Implementations§
Source§impl TreeLayout
impl TreeLayout
pub fn new() -> Self
pub fn with_algorithm(self, algorithm: TreeLayoutAlgorithm) -> Self
pub fn with_config(self, config: TreeLayoutConfig) -> Self
pub fn visualize(&self, tree: &TreeNode) -> Result<String>
pub fn layout_tree(&self, tree: &TreeNode) -> Result<Layout>
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 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