pub struct PlatformRoot { /* private fields */ }
Implementations§
source§impl PlatformRoot
impl PlatformRoot
pub fn new(app_context: &Arc<RwLock<AppContext>>) -> Self
pub fn name(&self) -> Result<String>
pub fn child_count(&self) -> Result<i32>
pub fn child_at_index(&self, index: usize) -> Result<Option<PlatformNode>>
pub fn child_id_at_index(&self, index: usize) -> Result<Option<(usize, NodeId)>>
pub fn map_children<T, I>(&self, f: impl Fn(PlatformNode) -> I) -> Result<T>where
T: FromIterator<I>,
pub fn map_child_ids<T, I>(&self, f: impl Fn((usize, NodeId)) -> I) -> Result<T>where
T: FromIterator<I>,
pub fn toolkit_name(&self) -> Result<String>
pub fn toolkit_version(&self) -> Result<String>
pub fn id(&self) -> Result<i32>
pub fn set_id(&mut self, id: i32) -> Result<()>
Trait Implementations§
source§impl Clone for PlatformRoot
impl Clone for PlatformRoot
source§fn clone(&self) -> PlatformRoot
fn clone(&self) -> PlatformRoot
Returns a copy 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 Hash for PlatformRoot
impl Hash for PlatformRoot
source§impl PartialEq for PlatformRoot
impl PartialEq for PlatformRoot
Auto Trait Implementations§
impl Freeze for PlatformRoot
impl RefUnwindSafe for PlatformRoot
impl Send for PlatformRoot
impl Sync for PlatformRoot
impl Unpin for PlatformRoot
impl UnwindSafe for PlatformRoot
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
)