pub struct ReferenceTree {
pub root: TreeNode,
}Expand description
A reference tree representing the search results
Fields§
§root: TreeNodeImplementations§
Source§impl ReferenceTree
impl ReferenceTree
Sourcepub fn with_search_text(search_text: String) -> Self
pub fn with_search_text(search_text: String) -> Self
Create a ReferenceTree with a root containing the search text
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get the total number of nodes in the tree
Sourcepub fn has_results(&self) -> bool
pub fn has_results(&self) -> bool
Check if the tree has any results (children of root)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReferenceTree
impl RefUnwindSafe for ReferenceTree
impl Send for ReferenceTree
impl Sync for ReferenceTree
impl Unpin for ReferenceTree
impl UnwindSafe for ReferenceTree
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