pub struct TreeFormatter { /* private fields */ }Expand description
Formatter for rendering reference trees as text
Implementations§
Source§impl TreeFormatter
impl TreeFormatter
Sourcepub fn with_width(max_width: usize) -> Self
pub fn with_width(max_width: usize) -> Self
Create a TreeFormatter with custom width
Sourcepub fn with_search_query(self, query: String) -> Self
pub fn with_search_query(self, query: String) -> Self
Set the search query for highlighting
Sourcepub fn with_simple_format(self, simple: bool) -> Self
pub fn with_simple_format(self, simple: bool) -> Self
Enable simple machine-readable format (file:line:content)
Sourcepub fn format_result(&self, result: &SearchResult) -> String
pub fn format_result(&self, result: &SearchResult) -> String
Format a search result with clear sections
Sourcepub fn format(&self, tree: &ReferenceTree) -> String
pub fn format(&self, tree: &ReferenceTree) -> String
Format a reference tree as a string (legacy tree format)
pub fn format_trace_tree( &self, tree: &CallTree, direction: TraceDirection, ) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeFormatter
impl RefUnwindSafe for TreeFormatter
impl Send for TreeFormatter
impl Sync for TreeFormatter
impl Unpin for TreeFormatter
impl UnwindSafe for TreeFormatter
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