pub struct TreePersistState {
pub expanded_paths: HashSet<String>,
}Expand description
Persistable state for a Tree widget.
Stores the set of expanded node paths to restore tree expansion state.
Fields§
§expanded_paths: HashSet<String>Set of expanded node paths (e.g., “root/src/main.rs”).
Trait Implementations§
Source§impl Clone for TreePersistState
impl Clone for TreePersistState
Source§fn clone(&self) -> TreePersistState
fn clone(&self) -> TreePersistState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TreePersistState
impl Debug for TreePersistState
Source§impl Default for TreePersistState
impl Default for TreePersistState
Source§fn default() -> TreePersistState
fn default() -> TreePersistState
Returns the “default value” for a type. Read more
Source§impl PartialEq for TreePersistState
impl PartialEq for TreePersistState
impl StructuralPartialEq for TreePersistState
Auto Trait Implementations§
impl Freeze for TreePersistState
impl RefUnwindSafe for TreePersistState
impl Send for TreePersistState
impl Sync for TreePersistState
impl Unpin for TreePersistState
impl UnsafeUnpin for TreePersistState
impl UnwindSafe for TreePersistState
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