Struct Tree

Source
pub struct Tree { /* private fields */ }
Expand description

The tree diagram is mainly used to display the tree data structure.

Implementations§

Source§

impl Tree

Source

pub fn new() -> Self

Source

pub fn id<S: Into<String>>(self, id: S) -> Self

Source

pub fn name<S: Into<String>>(self, name: S) -> Self

Source

pub fn z_level(self, z_level: u64) -> Self

Source

pub fn z(self, z: u64) -> Self

Source

pub fn left<C: Into<CompositeValue>>(self, left: C) -> Self

Source

pub fn top<C: Into<CompositeValue>>(self, top: C) -> Self

Source

pub fn right<C: Into<CompositeValue>>(self, right: C) -> Self

Source

pub fn bottom<C: Into<CompositeValue>>(self, bottom: C) -> Self

Source

pub fn width<C: Into<CompositeValue>>(self, width: C) -> Self

Source

pub fn height<C: Into<CompositeValue>>(self, height: C) -> Self

Source

pub fn center<C: Into<CompositeValue>>(self, center: C) -> Self

Source

pub fn zoom<F: Into<i64>>(self, zoom: F) -> Self

Source

pub fn layout<T: Into<TreeLayout>>(self, layout: T) -> Self

Source

pub fn orient<T: Into<TreeOrient>>(self, orient: T) -> Self

Source

pub fn symbol<S: Into<Symbol>>(self, symbol: S) -> Self

Source

pub fn symbol_size<F: Into<i64>>(self, symbol_size: F) -> Self

Source

pub fn symbol_rotate<F: Into<i64>>(self, symbol_rotate: F) -> Self

Source

pub fn symbol_keep_aspect(self, symbol_keep_aspect: bool) -> Self

Source

pub fn symbol_offset<C: Into<CompositeValue>>(self, symbol_offset: C) -> Self

Source

pub fn edge_shape<T: Into<TreeEdgeShape>>(self, edge_shape: T) -> Self

Source

pub fn edge_fork_position<S: Into<String>>(self, edge_fork_position: S) -> Self

Source

pub fn roam(self, roam: bool) -> Self

Source

pub fn initial_tree_depth<F: Into<i64>>(self, initial_tree_depth: F) -> Self

Source

pub fn item_style<I: Into<ItemStyle>>(self, item_style: I) -> Self

Source

pub fn label<L: Into<Label>>(self, label: L) -> Self

Source

pub fn emphasis<E: Into<Emphasis>>(self, emphasis: E) -> Self

Source

pub fn blur<B: Into<Blur>>(self, blur: B) -> Self

Source

pub fn select<S: Into<Select>>(self, select: S) -> Self

Source

pub fn selected_mode(self, selected_mode: bool) -> Self

Source

pub fn expand_and_collapse(self, expand_and_collapse: bool) -> Self

Source

pub fn animation_duration<F: Into<i64>>(self, animation_duration: F) -> Self

Source

pub fn animation_duration_update<F: Into<i64>>( self, animation_duration_update: F, ) -> Self

Source

pub fn leaves<T: Into<TreeLeaves>>(self, leaves: T) -> Self

Source

pub fn data<T: Into<TreeNode>>(self, data: Vec<T>) -> Self

Trait Implementations§

Source§

impl From<Tree> for Series

Source§

fn from(series: Tree) -> Self

Converts to this type from the input type.
Source§

impl Serialize for Tree

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Serializable for T
where T: Serialize,

Source§

fn to_v8<'a>( &mut self, scope: &mut HandleScope<'a>, ) -> Result<Local<'a, Value>, Error>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,