Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/captain-camel/display_tree
/ functions
Functions
71 in github.com/captain-camel/display_tree
⨍
Functions
71
◇
Types & classes
22
↓ 15 callers
Method
style_mut
(&mut self)
src/display.rs:108
↓ 3 callers
Function
generate_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 callers
Function
generate_field_writes
( leaf_expressions: Vec<TokenStream2>, node_label_string_ref: TokenStream2, )
display_tree_derive/src/gen.rs:307
↓ 1 callers
Function
generate
(ast: syn::DeriveInput)
display_tree_derive/src/gen.rs:19
↓ 1 callers
Function
generate_struct_field_writes
( ident: &syn::Ident, fields: syn::Fields, struct_config: attrs::node::Config, )
display_tree_derive/src/gen.rs:54
Method
apply
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
Function
background_color
()
src/display.rs:561
Function
bold
()
src/display.rs:570
Method
bold_branches
Renders the branches as bold.
src/display.rs:529
Method
bold_leaves
Renders the leaves as bold.
src/display.rs:485
Method
branch_background_color
Sets the background color of the branches of the tree. See [`Color`] for more information.
src/display.rs:523
Method
branch_color
Sets the color of the branches of the tree. See [`Color`] for more information.
src/display.rs:516
Method
branch_style
Sets the style of the branches of the tre. See [`TextStyle`] for more information.
src/display.rs:465
Function
char_set
()
tests/style.rs:4
Method
char_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
Method
default
()
display_tree_derive/src/attrs.rs:48
Method
default
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
Function
derive_display_tree
(tokens: proc_macro::TokenStream)
display_tree_derive/src/lib.rs:15
Function
enum_named
()
tests/derive.rs:62
Function
enum_unit
()
tests/derive.rs:35
Function
enum_unnamed
()
tests/derive.rs:46
Function
faint
()
src/display.rs:579
Method
faint_branches
Decreases the intensity of the branches.
src/display.rs:535
Method
faint_leaves
Decreases the intensity of the leaves.
src/display.rs:491
Function
field_attr_field_label_enum
()
tests/attrs.rs:95
Function
field_attr_field_label_no_args_enum
()
tests/attrs.rs:75
Function
field_attr_field_label_no_args_struct
()
tests/attrs.rs:39
Function
field_attr_field_label_struct
()
tests/attrs.rs:57
Function
field_attr_ignore_field_enum
()
tests/attrs.rs:134
Function
field_attr_ignore_field_struct
()
tests/attrs.rs:116
Function
field_attr_node_label_enum
()
tests/attrs.rs:170
Function
field_attr_node_label_struct
()
tests/attrs.rs:153
Function
field_attr_tree_enum
()
tests/attrs.rs:221
Function
field_attr_tree_self
()
tests/attrs.rs:268
Function
field_attr_tree_struct
()
tests/attrs.rs:189
Function
field_struct
()
tests/derive.rs:4
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
display_tree_derive/src/attrs.rs:240
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/display.rs:114
Function
format
()
src/lib.rs:543
Method
from
(attributes: &[syn::Attribute])
display_tree_derive/src/attrs.rs:54
Function
from_arc
()
src/to_display_tree_ref.rs:103
Function
from_box
()
src/to_display_tree_ref.rs:87
Function
from_cow
()
src/to_display_tree_ref.rs:111
Function
from_rc
()
src/to_display_tree_ref.rs:95
Function
from_reference
()
src/to_display_tree_ref.rs:78
Function
from_value
()
src/to_display_tree_ref.rs:70
Function
generate_arm
(variant: syn::Variant)
display_tree_derive/src/gen.rs:158
Function
indentation
()
tests/style.rs:21
Method
indentation
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
Function
italic
()
src/display.rs:588
Method
italic_leaves
Italicises the leaves.
src/display.rs:497
Method
leaf_background_color
Sets the background color of the leaves of the tree. See [`Color`] for more information.
src/display.rs:479
Method
leaf_color
Sets the color of the leaves of the tree. See [`Color`] for more information.
src/display.rs:472
Method
leaf_style
Sets the style of the leaves of the tree. See [`TextStyle`] for more information.
src/display.rs:458
Method
new
(kind: AttributeParseErrorKind, span: Span)
display_tree_derive/src/attrs.rs:234
Method
new
Creates a wrapper around a type that implements [`DisplayTree`], allowing it to be formatted. # Examples ``` use display_tree::{AsTree, DisplayTree}
src/display.rs:82
Function
node_attr_node_label_enum
()
tests/attrs.rs:22
Function
node_attr_node_label_struct
()
tests/attrs.rs:4
Method
parse
(attribute: &syn::Attribute)
display_tree_derive/src/attrs.rs:15
Function
plain
()
src/display.rs:546
Function
strikethrough
()
src/display.rs:606
Method
strikethrough_leaves
Causes the leaves to be crossed-out.
src/display.rs:509
Function
text_color
()
src/display.rs:552
Method
to_display_tree
(&self)
src/to_display_tree_ref.rs:30
Method
to_tokens
(&self, tokens: &mut TokenStream2)
display_tree_derive/src/gen.rs:11
Function
tuple_struct
()
tests/derive.rs:21
Function
underline
()
src/display.rs:597
Method
underlined_leaves
Underlines the leaves.
src/display.rs:503
Method
with_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
Function
write
()
src/lib.rs:517
Function
writeln
()
src/lib.rs:530