MCPcopy Create free account

hub / github.com/captain-camel/display_tree / functions

Functions71 in github.com/captain-camel/display_tree

↓ 15 callersMethodstyle_mut
(&mut self)
src/display.rs:108
↓ 3 callersFunctiongenerate_enum_field_writes
( variant: &syn::Variant, field_bindings: impl Iterator<Item = &'a syn::Ident>, variant_config: at
display_tree_derive/src/gen.rs:210
↓ 2 callersFunctiongenerate_field_writes
( leaf_expressions: Vec<TokenStream2>, node_label_string_ref: TokenStream2, )
display_tree_derive/src/gen.rs:307
↓ 1 callersFunctiongenerate
(ast: syn::DeriveInput)
display_tree_derive/src/gen.rs:19
↓ 1 callersFunctiongenerate_struct_field_writes
( ident: &syn::Ident, fields: syn::Fields, struct_config: attrs::node::Config, )
display_tree_derive/src/gen.rs:54
Methodapply
Applies the style to a string. [`apply()`](TextStyle::apply()) should not be called unless you are manually implementing [`DisplayTree`]. It is used
src/display.rs:205
Functionbackground_color
()
src/display.rs:561
Functionbold
()
src/display.rs:570
Methodbold_branches
Renders the branches as bold.
src/display.rs:529
Methodbold_leaves
Renders the leaves as bold.
src/display.rs:485
Methodbranch_background_color
Sets the background color of the branches of the tree. See [`Color`] for more information.
src/display.rs:523
Methodbranch_color
Sets the color of the branches of the tree. See [`Color`] for more information.
src/display.rs:516
Methodbranch_style
Sets the style of the branches of the tre. See [`TextStyle`] for more information.
src/display.rs:465
Functionchar_set
()
tests/style.rs:4
Methodchar_set
Sets the [`CharSet`] making up the branches of the tree. See [`CharSet`] for more information. # Examples ``` use display_tree::{AsTree, CharSet, D
src/display.rs:421
Methoddefault
()
display_tree_derive/src/attrs.rs:48
Methoddefault
The default [`Style`] used if none is specified. Default values: - [`char_set`](Style::char_set): [`CharSet::SINGLE_LINE`] - [`indentation`](Style::i
src/display.rs:166
Functionderive_display_tree
(tokens: proc_macro::TokenStream)
display_tree_derive/src/lib.rs:15
Functionenum_named
()
tests/derive.rs:62
Functionenum_unit
()
tests/derive.rs:35
Functionenum_unnamed
()
tests/derive.rs:46
Functionfaint
()
src/display.rs:579
Methodfaint_branches
Decreases the intensity of the branches.
src/display.rs:535
Methodfaint_leaves
Decreases the intensity of the leaves.
src/display.rs:491
Functionfield_attr_field_label_enum
()
tests/attrs.rs:95
Functionfield_attr_field_label_no_args_enum
()
tests/attrs.rs:75
Functionfield_attr_field_label_no_args_struct
()
tests/attrs.rs:39
Functionfield_attr_field_label_struct
()
tests/attrs.rs:57
Functionfield_attr_ignore_field_enum
()
tests/attrs.rs:134
Functionfield_attr_ignore_field_struct
()
tests/attrs.rs:116
Functionfield_attr_node_label_enum
()
tests/attrs.rs:170
Functionfield_attr_node_label_struct
()
tests/attrs.rs:153
Functionfield_attr_tree_enum
()
tests/attrs.rs:221
Functionfield_attr_tree_self
()
tests/attrs.rs:268
Functionfield_attr_tree_struct
()
tests/attrs.rs:189
Functionfield_struct
()
tests/derive.rs:4
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
display_tree_derive/src/attrs.rs:240
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/display.rs:114
Functionformat
()
src/lib.rs:543
Methodfrom
(attributes: &[syn::Attribute])
display_tree_derive/src/attrs.rs:54
Functionfrom_arc
()
src/to_display_tree_ref.rs:103
Functionfrom_box
()
src/to_display_tree_ref.rs:87
Functionfrom_cow
()
src/to_display_tree_ref.rs:111
Functionfrom_rc
()
src/to_display_tree_ref.rs:95
Functionfrom_reference
()
src/to_display_tree_ref.rs:78
Functionfrom_value
()
src/to_display_tree_ref.rs:70
Functiongenerate_arm
(variant: syn::Variant)
display_tree_derive/src/gen.rs:158
Functionindentation
()
tests/style.rs:21
Methodindentation
Sets the indentation of each node. More specifically, [`indentation()`](AsTree::indentation()) sets the number of horizontal characters to use for ea
src/display.rs:451
Functionitalic
()
src/display.rs:588
Methoditalic_leaves
Italicises the leaves.
src/display.rs:497
Methodleaf_background_color
Sets the background color of the leaves of the tree. See [`Color`] for more information.
src/display.rs:479
Methodleaf_color
Sets the color of the leaves of the tree. See [`Color`] for more information.
src/display.rs:472
Methodleaf_style
Sets the style of the leaves of the tree. See [`TextStyle`] for more information.
src/display.rs:458
Methodnew
(kind: AttributeParseErrorKind, span: Span)
display_tree_derive/src/attrs.rs:234
Methodnew
Creates a wrapper around a type that implements [`DisplayTree`], allowing it to be formatted. # Examples ``` use display_tree::{AsTree, DisplayTree}
src/display.rs:82
Functionnode_attr_node_label_enum
()
tests/attrs.rs:22
Functionnode_attr_node_label_struct
()
tests/attrs.rs:4
Methodparse
(attribute: &syn::Attribute)
display_tree_derive/src/attrs.rs:15
Functionplain
()
src/display.rs:546
Functionstrikethrough
()
src/display.rs:606
Methodstrikethrough_leaves
Causes the leaves to be crossed-out.
src/display.rs:509
Functiontext_color
()
src/display.rs:552
Methodto_display_tree
(&self)
src/to_display_tree_ref.rs:30
Methodto_tokens
(&self, tokens: &mut TokenStream2)
display_tree_derive/src/gen.rs:11
Functiontuple_struct
()
tests/derive.rs:21
Functionunderline
()
src/display.rs:597
Methodunderlined_leaves
Underlines the leaves.
src/display.rs:503
Methodwith_style
Creates a wrapper around a type that implements [`DisplayTree`], allowing it to be formatted with the given style. # Examples ``` use display_tree::
src/display.rs:102
Functionwrite
()
src/lib.rs:517
Functionwriteln
()
src/lib.rs:530