pub struct Tree { /* private fields */ }
Expand description
The tree diagram is mainly used to display the tree data structure.
Implementations§
Source§impl Tree
impl Tree
pub fn new() -> Self
pub fn id<S: Into<String>>(self, id: S) -> Self
pub fn name<S: Into<String>>(self, name: S) -> Self
pub fn z_level(self, z_level: u64) -> Self
pub fn z(self, z: u64) -> Self
pub fn left<C: Into<CompositeValue>>(self, left: C) -> Self
pub fn top<C: Into<CompositeValue>>(self, top: C) -> Self
pub fn right<C: Into<CompositeValue>>(self, right: C) -> Self
pub fn bottom<C: Into<CompositeValue>>(self, bottom: C) -> Self
pub fn width<C: Into<CompositeValue>>(self, width: C) -> Self
pub fn height<C: Into<CompositeValue>>(self, height: C) -> Self
pub fn center<C: Into<CompositeValue>>(self, center: C) -> Self
pub fn zoom<F: Into<i64>>(self, zoom: F) -> Self
pub fn layout<T: Into<TreeLayout>>(self, layout: T) -> Self
pub fn orient<T: Into<TreeOrient>>(self, orient: T) -> Self
pub fn symbol<S: Into<Symbol>>(self, symbol: S) -> Self
pub fn symbol_size<F: Into<i64>>(self, symbol_size: F) -> Self
pub fn symbol_rotate<F: Into<i64>>(self, symbol_rotate: F) -> Self
pub fn symbol_keep_aspect(self, symbol_keep_aspect: bool) -> Self
pub fn symbol_offset<C: Into<CompositeValue>>(self, symbol_offset: C) -> Self
pub fn edge_shape<T: Into<TreeEdgeShape>>(self, edge_shape: T) -> Self
pub fn edge_fork_position<S: Into<String>>(self, edge_fork_position: S) -> Self
pub fn roam(self, roam: bool) -> Self
pub fn initial_tree_depth<F: Into<i64>>(self, initial_tree_depth: F) -> Self
pub fn item_style<I: Into<ItemStyle>>(self, item_style: I) -> Self
pub fn label<L: Into<Label>>(self, label: L) -> Self
pub fn emphasis<E: Into<Emphasis>>(self, emphasis: E) -> Self
pub fn blur<B: Into<Blur>>(self, blur: B) -> Self
pub fn select<S: Into<Select>>(self, select: S) -> Self
pub fn selected_mode(self, selected_mode: bool) -> Self
pub fn expand_and_collapse(self, expand_and_collapse: bool) -> Self
pub fn animation_duration<F: Into<i64>>(self, animation_duration: F) -> Self
pub fn animation_duration_update<F: Into<i64>>( self, animation_duration_update: F, ) -> Self
pub fn leaves<T: Into<TreeLeaves>>(self, leaves: T) -> Self
pub fn data<T: Into<TreeNode>>(self, data: Vec<T>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tree
impl RefUnwindSafe for Tree
impl Send for Tree
impl Sync for Tree
impl Unpin for Tree
impl UnwindSafe for Tree
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more