Struct i_slint_core::items::ItemRc
source · [−]#[repr(C)]pub struct ItemRc { /* private fields */ }Expand description
A ItemRc is holding a reference to a component containing the item, and the index of this item
Implementations
sourceimpl ItemRc
impl ItemRc
sourcepub fn new(component: VRc<ComponentVTable>, index: usize) -> Self
pub fn new(component: VRc<ComponentVTable>, index: usize) -> Self
Create an ItemRc from a component and an index
pub fn downgrade(&self) -> ItemWeak
sourcepub fn parent_item(&self) -> ItemWeak
pub fn parent_item(&self) -> ItemWeak
Return the parent Item in the item tree. This is weak because it can be null if there is no parent
sourcepub fn component(&self) -> VRc<ComponentVTable>
pub fn component(&self) -> VRc<ComponentVTable>
Returns a reference to the component holding this item
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemRc
impl Send for ItemRc
impl Sync for ItemRc
impl Unpin for ItemRc
impl UnwindSafe for ItemRc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more