[−][src]Struct sixtyfps_corelib::item_tree::ItemVisitorVTable
Object to be passed in visit_item_children method of the Component.
Fields
visit_item: unsafe extern "C" fn(_: VRefMut<'_, ItemVisitorVTable>, component: &VRc<ComponentVTable, Dyn>, index: usize, item: Pin<VRef<'_, ItemVTable>>) -> VisitChildrenResult
Called for each children of the visited item
The component
parameter is the component in which the item live which might not be the same
as the parent's component.
index
is to be used again in the visit_item_children function of the Component (the one passed as parameter)
and item
is a reference to the item itself
drop: unsafe extern "C" fn(_: VRefMut<'_, ItemVisitorVTable>)
Destructor
Implementations
impl ItemVisitorVTable
[src]
pub fn new<T: ItemVisitor>() -> Self
[src]
Create a vtable suitable for a given type implementing the trait.
Trait Implementations
impl VTableMeta for ItemVisitorVTable
[src]
type VTable = ItemVisitorVTable
That's the VTable itself (so most likely Self)
type Target = ItemVisitorTO
That's the trait object that implements the functions Read more
impl VTableMetaDrop for ItemVisitorVTable
[src]
pub unsafe fn drop(ptr: *mut ItemVisitorTO)
[src]
pub fn new_box<X: HasStaticVTable<ItemVisitorVTable>>(
value: X
) -> VBox<ItemVisitorVTable>
[src]
value: X
) -> VBox<ItemVisitorVTable>
Auto Trait Implementations
impl RefUnwindSafe for ItemVisitorVTable
impl Send for ItemVisitorVTable
impl Sync for ItemVisitorVTable
impl Unpin for ItemVisitorVTable
impl UnwindSafe for ItemVisitorVTable
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,