pub struct TreeState { /* private fields */ }
Implementations§
source§impl State
impl State
pub fn serialize(&self) -> TreeUpdate
pub fn has_node(&self, id: NodeId) -> bool
pub fn node_by_id(&self, id: NodeId) -> Option<Node<'_>>
pub fn root_id(&self) -> NodeId
pub fn root(&self) -> Node<'_>
pub fn is_host_focused(&self) -> bool
pub fn focus_id(&self) -> Option<NodeId>
pub fn focus(&self) -> Option<Node<'_>>
pub fn app_name(&self) -> Option<String>
pub fn toolkit_name(&self) -> Option<String>
pub fn toolkit_version(&self) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)