Lines Matching +full:static +full:- +full:extend
11 /// components in a tree-like format
21 pub fn new(root: D) -> Self { in new()
30 pub fn with_leaves(mut self, leaves: impl IntoIterator<Item = impl Into<Tree<D>>>) -> Self { in with_leaves()
36 pub fn with_multiline(mut self, yes: bool) -> Self { in with_multiline()
42 pub fn with_glyphs(mut self, glyphs: GlyphPalette) -> Self { in with_glyphs()
50 pub fn set_multiline(&mut self, yes: bool) -> &mut Self { in set_multiline()
56 pub fn set_glyphs(&mut self, glyphs: GlyphPalette) -> &mut Self { in set_glyphs()
63 pub fn push(&mut self, leaf: impl Into<Tree<D>>) -> &mut Self { in push()
70 fn from(inner: D) -> Self { in from()
75 impl<D: Display> Extend<D> for Tree<D> {
76 fn extend<T: IntoIterator<Item = D>>(&mut self, iter: T) { in extend() method
77 self.leaves.extend(iter.into_iter().map(Into::into)) in extend()
81 impl<D: Display> Extend<Tree<D>> for Tree<D> { impl
82 fn extend<T: IntoIterator<Item = Tree<D>>>(&mut self, iter: T) { in extend() method
83 self.leaves.extend(iter) in extend()
88 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
183 pub middle_item: &'static str,
184 pub last_item: &'static str,
185 pub item_indent: &'static str,
187 pub middle_skip: &'static str,
188 pub last_skip: &'static str,
189 pub skip_indent: &'static str,
193 pub const fn new() -> Self { in new()
207 fn default() -> Self { in default()