Struct sixtyfps_corelib::items::ItemRc [−][src]
#[repr(C)]pub struct ItemRc { /* fields omitted */ }
A ItemRc is holding a reference to a component containing the item, and the index of this item
Implementations
impl ItemRc
[src]
impl ItemRc
[src]pub fn new(component: VRc<ComponentVTable>, index: usize) -> Self
[src]
Create an ItemRc from a component and an index
pub fn borrow<'a>(&'a self) -> Pin<ItemRef<'a>>
[src]
Return a Pin<ItemRef<'a>>
pub fn downgrade(&self) -> ItemWeak
[src]
pub fn parent_item(&self) -> ItemWeak
[src]
Return the parent Item in the item tree. This is weak because it can be null if there is no parent
pub fn index(&self) -> usize
[src]
Return the index of the item within the component
pub fn component(&self) -> VRc<ComponentVTable>
[src]
Returns a reference to the component holding this item
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ItemRc
impl !RefUnwindSafe for ItemRc
impl !UnwindSafe for ItemRc
impl !UnwindSafe for ItemRc