pub struct SliverMultiBoxAdaptorElement<W: SliverMultiBoxAdaptorWidget>where
W::RenderObject: RenderSliverMultiBoxAdaptor,{ /* private fields */ }Expand description
An element that lazily builds children for a SliverMultiBoxAdaptorWidget: the leaf that
has no bodies of its own beyond SliverMultiBoxAdaptorElementBase’s.
Implementations§
Source§impl<W: SliverMultiBoxAdaptorWidget> SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
impl<W: SliverMultiBoxAdaptorWidget> SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
Sourcepub fn new(
app: &mut App,
widget: WidgetRef,
replace_moved_children: bool,
) -> Handle<SliverMultiBoxAdaptorElement<W>>
pub fn new( app: &mut App, widget: WidgetRef, replace_moved_children: bool, ) -> Handle<SliverMultiBoxAdaptorElement<W>>
Creates an element that lazily builds children for the given widget.
If replace_moved_children is true, a new child is proactively inflated for the index
that was previously occupied by a child that moved to a new index. The layout offset of
the moved child is copied over to the new child. Render objects that depend on the layout
offset of existing children during RenderObject::perform_layout should set this to true
(example: RenderSliverList). For render objects that figure out the layout offset of
their children without looking at the layout offset of existing children this should be
set to false (example: RenderSliverFixedExtentList) to avoid inflating unnecessary
children.
Sourcepub fn render_object(
self: Handle<Self>,
app: &App,
) -> RenderHandle<W::RenderObject>
pub fn render_object( self: Handle<Self>, app: &App, ) -> RenderHandle<W::RenderObject>
The render object this element manages the children of.
Trait Implementations§
Source§impl<W: SliverMultiBoxAdaptorWidget> Element for SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
impl<W: SliverMultiBoxAdaptorWidget> Element for SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
Source§const IS_RENDER_OBJECT_ELEMENT: bool = true
const IS_RENDER_OBJECT_ELEMENT: bool = true
this is RenderObjectElement.Source§fn element_data(self: Handle<Self>, app: &App) -> &ElementData
fn element_data(self: Handle<Self>, app: &App) -> &ElementData
element
(element_accessors!).Source§fn element_data_mut(self: Handle<Self>, app: &mut App) -> &mut ElementData
fn element_data_mut(self: Handle<Self>, app: &mut App) -> &mut ElementData
element_data.Source§fn render_object(self: Handle<Self>, app: &App) -> Option<AnyRenderObject>
fn render_object(self: Handle<Self>, app: &App) -> Option<AnyRenderObject>
Source§fn render_object_attaching_child(
self: Handle<Self>,
_app: &App,
) -> Option<AnyElement>
fn render_object_attaching_child( self: Handle<Self>, _app: &App, ) -> Option<AnyElement>
Source§fn debug_doing_build(self: Handle<Self>, app: &App) -> bool
fn debug_doing_build(self: Handle<Self>, app: &App) -> bool
Source§fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)
fn mount( self: Handle<Self>, app: &mut App, parent: Option<AnyElement>, new_slot: Option<Slot>, )
Source§fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)
fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)
Source§fn perform_rebuild(self: Handle<Self>, app: &mut App)
fn perform_rebuild(self: Handle<Self>, app: &mut App)
Source§fn deactivate(self: Handle<Self>, app: &mut App)
fn deactivate(self: Handle<Self>, app: &mut App)
Source§fn unmount(self: Handle<Self>, app: &mut App)
fn unmount(self: Handle<Self>, app: &mut App)
Source§fn update_parent_data(
self: Handle<Self>,
app: &mut App,
parent_data_element: AnyElement,
)
fn update_parent_data( self: Handle<Self>, app: &mut App, parent_data_element: AnyElement, )
RenderObjectElement._updateParentData: apply a parent-data widget to this element’s
render object.Source§fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
AnyElement::update_slot_for_child when the slot for a child has changed.Source§fn detach_render_object(self: Handle<Self>, app: &mut App)
fn detach_render_object(self: Handle<Self>, app: &mut App)
AnyElement::render_object from the render tree. Read moreSource§fn forget_child(self: Handle<Self>, app: &mut App, child: AnyElement)
fn forget_child(self: Handle<Self>, app: &mut App, child: AnyElement)
Source§fn visit_children(
self: Handle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyElement),
)
fn visit_children( self: Handle<Self>, app: &App, visitor: &mut dyn FnMut(AnyElement), )
Source§fn debug_visit_onstage_children(
self: Handle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyElement),
)
fn debug_visit_onstage_children( self: Handle<Self>, app: &App, visitor: &mut dyn FnMut(AnyElement), )
Source§fn insert_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
slot: Option<Slot>,
)
fn insert_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, slot: Option<Slot>, )
RenderObjectElement.insertRenderObjectChild.Source§fn move_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
old_slot: Option<Slot>,
new_slot: Option<Slot>,
)
fn move_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, old_slot: Option<Slot>, new_slot: Option<Slot>, )
RenderObjectElement.moveRenderObjectChild.Source§fn remove_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
slot: Option<Slot>,
)
fn remove_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, slot: Option<Slot>, )
RenderObjectElement.removeRenderObjectChild.Source§fn as_element(self: Handle<Self>) -> AnyElement
fn as_element(self: Handle<Self>) -> AnyElement
Source§fn activate(self: Handle<Self>, app: &mut App)
fn activate(self: Handle<Self>, app: &mut App)
Source§fn debug_deactivated(self: Handle<Self>, app: &mut App)
fn debug_deactivated(self: Handle<Self>, app: &mut App)
Source§fn did_change_dependencies(self: Handle<Self>, app: &mut App)
fn did_change_dependencies(self: Handle<Self>, app: &mut App)
Source§fn update_inheritance(self: Handle<Self>, app: &mut App)
fn update_inheritance(self: Handle<Self>, app: &mut App)
_updateInheritance: inherit the parent’s inherited-element map.Source§fn attach_notification_tree(self: Handle<Self>, app: &mut App)
fn attach_notification_tree(self: Handle<Self>, app: &mut App)
Source§fn build_scope(self: Handle<Self>, app: &App) -> Handle<BuildScope>
fn build_scope(self: Handle<Self>, app: &App) -> Handle<BuildScope>
BuildScope whose dirty list this element is in. Read moreSource§fn mark_needs_build(self: Handle<Self>, app: &mut App)
fn mark_needs_build(self: Handle<Self>, app: &mut App)
Source§fn on_notification(
self: Handle<Self>,
app: &mut App,
notification: &dyn Notification,
) -> bool
fn on_notification( self: Handle<Self>, app: &mut App, notification: &dyn Notification, ) -> bool
NotifiableElementMixin.onNotification). Read moreSource§fn debug_expects_render_object_for_slot(
self: Handle<Self>,
app: &App,
slot: Option<&Slot>,
) -> bool
fn debug_expects_render_object_for_slot( self: Handle<Self>, app: &App, slot: Option<&Slot>, ) -> bool
slot (or one of its descendants) must insert a
RenderObject into its ancestor RenderObjectElement by calling
RenderObjectElement::insert_render_object_child on it.Source§const IS_PARENT_DATA_ELEMENT: bool = false
const IS_PARENT_DATA_ELEMENT: bool = false
this is ParentDataElement.Source§fn apply_parent_data(
self: Handle<Self>,
app: &mut App,
render_object: AnyRenderObject,
) -> bool
fn apply_parent_data( self: Handle<Self>, app: &mut App, render_object: AnyRenderObject, ) -> bool
ParentDataWidget.applyParentData through the element that holds the widget.Source§const IS_INHERITED_ELEMENT: bool = false
const IS_INHERITED_ELEMENT: bool = false
this is InheritedElement.Source§fn update_dependencies(
self: Handle<Self>,
app: &mut App,
dependent: AnyElement,
aspect: Option<Rc<dyn Any>>,
)
fn update_dependencies( self: Handle<Self>, app: &mut App, dependent: AnyElement, aspect: Option<Rc<dyn Any>>, )
InheritedElement.updateDependencies.Source§fn remove_dependent(self: Handle<Self>, app: &mut App, dependent: AnyElement)
fn remove_dependent(self: Handle<Self>, app: &mut App, dependent: AnyElement)
InheritedElement.removeDependent.Source§fn state_handle_id(self: Handle<Self>, app: &App) -> Option<(TypeId, HandleId)>
fn state_handle_id(self: Handle<Self>, app: &App) -> Option<(TypeId, HandleId)>
this is StatefulElement && state is T: the state’s type and arena id.Source§fn debug_fill_properties(
self: Handle<Self>,
app: &App,
properties: &mut DiagnosticPropertiesBuilder,
)
fn debug_fill_properties( self: Handle<Self>, app: &App, properties: &mut DiagnosticPropertiesBuilder, )
debugFillProperties as an element class overrides it: the properties it adds
after Element’s, and RenderObjectElement’s for a render object element, which the
framework adds first since a trait default cannot call super.Source§fn debug_describe_children(
self: Handle<Self>,
app: &App,
) -> Vec<Rc<dyn DiagnosticsNode>>
fn debug_describe_children( self: Handle<Self>, app: &App, ) -> Vec<Rc<dyn DiagnosticsNode>>
debugDescribeChildren: the children a dump shows under this element, by
default every child visit_children visits.Source§impl<W: SliverMultiBoxAdaptorWidget> RenderObjectElement for SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
impl<W: SliverMultiBoxAdaptorWidget> RenderObjectElement for SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
Source§fn render_object_element_data(
self: Handle<Self>,
app: &App,
) -> &RenderObjectElementData
fn render_object_element_data( self: Handle<Self>, app: &App, ) -> &RenderObjectElementData
render_object_element.Source§fn render_object_element_data_mut(
self: Handle<Self>,
app: &mut App,
) -> &mut RenderObjectElementData
fn render_object_element_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut RenderObjectElementData
Source§fn render_object(self: Handle<Self>, app: &App) -> AnyRenderObject
fn render_object(self: Handle<Self>, app: &App) -> AnyRenderObject
RenderObject for this element.Source§fn typed_render_object(
self: Handle<Self>,
app: &App,
) -> RenderHandle<<<Self as RenderObjectElementWidget>::Widget as RenderObjectWidget>::RenderObject>where
Self: RenderObjectElementWidget,
fn typed_render_object(
self: Handle<Self>,
app: &App,
) -> RenderHandle<<<Self as RenderObjectElementWidget>::Widget as RenderObjectWidget>::RenderObject>where
Self: RenderObjectElementWidget,
fn find_ancestor_render_object_element( self: Handle<Self>, app: &App, ) -> Option<AnyElement>
fn find_ancestor_parent_data_elements( self: Handle<Self>, app: &App, ) -> Vec<AnyElement>
Source§fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)where
Self: RenderObjectWidgetCalls,
fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)where
Self: RenderObjectWidgetCalls,
RenderObjectElement.mount: the base mount, create the render object, attach it.Source§fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)where
Self: RenderObjectWidgetCalls,
fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)where
Self: RenderObjectWidgetCalls,
RenderObjectElement.update.Source§fn perform_rebuild(self: Handle<Self>, app: &mut App)where
Self: RenderObjectWidgetCalls,
fn perform_rebuild(self: Handle<Self>, app: &mut App)where
Self: RenderObjectWidgetCalls,
RenderObjectElement._performRebuild: push the widget’s configuration.Source§fn deactivate(self: Handle<Self>, app: &mut App)
fn deactivate(self: Handle<Self>, app: &mut App)
RenderObjectElement.deactivate.Source§fn unmount(self: Handle<Self>, app: &mut App)where
Self: RenderObjectWidgetCalls,
fn unmount(self: Handle<Self>, app: &mut App)where
Self: RenderObjectWidgetCalls,
RenderObjectElement.unmount.Source§fn update_parent_data(
self: Handle<Self>,
app: &mut App,
parent_data_element: AnyElement,
)
fn update_parent_data( self: Handle<Self>, app: &mut App, parent_data_element: AnyElement, )
RenderObjectElement._updateParentData.Source§fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
fn update_slot(self: Handle<Self>, app: &mut App, new_slot: Option<Slot>)
RenderObjectElement.updateSlot.Source§fn attach_render_object(
self: Handle<Self>,
app: &mut App,
new_slot: Option<Slot>,
)
fn attach_render_object( self: Handle<Self>, app: &mut App, new_slot: Option<Slot>, )
RenderObjectElement.attachRenderObject.Source§fn detach_render_object(self: Handle<Self>, app: &mut App)
fn detach_render_object(self: Handle<Self>, app: &mut App)
RenderObjectElement.detachRenderObject.Source§impl<W: SliverMultiBoxAdaptorWidget> RenderObjectElementWidget for SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
impl<W: SliverMultiBoxAdaptorWidget> RenderObjectElementWidget for SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
Source§impl<W: SliverMultiBoxAdaptorWidget> SliverMultiBoxAdaptorElementBase for SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
impl<W: SliverMultiBoxAdaptorWidget> SliverMultiBoxAdaptorElementBase for SliverMultiBoxAdaptorElement<W>where
W::RenderObject: RenderSliverMultiBoxAdaptor,
Source§fn adaptor_data(
self: Handle<Self>,
app: &App,
) -> &SliverMultiBoxAdaptorElementData
fn adaptor_data( self: Handle<Self>, app: &App, ) -> &SliverMultiBoxAdaptorElementData
adaptor.Source§fn adaptor_data_mut(
self: Handle<Self>,
app: &mut App,
) -> &mut SliverMultiBoxAdaptorElementData
fn adaptor_data_mut( self: Handle<Self>, app: &mut App, ) -> &mut SliverMultiBoxAdaptorElementData
adaptor_data.Source§fn as_child_manager(self: Handle<Self>) -> Rc<dyn RenderSliverBoxChildManager>
fn as_child_manager(self: Handle<Self>) -> Rc<dyn RenderSliverBoxChildManager>
RenderSliverBoxChildManager its render object holds.Source§fn build(self: Handle<Self>, app: &mut App, index: i32) -> Option<WidgetRef>
fn build(self: Handle<Self>, app: &mut App, index: i32) -> Option<WidgetRef>
_build.Source§fn update_child(
self: Handle<Self>,
app: &mut App,
child: Option<AnyElement>,
new_widget: Option<WidgetRef>,
new_slot: Option<Slot>,
) -> Option<AnyElement>
fn update_child( self: Handle<Self>, app: &mut App, child: Option<AnyElement>, new_widget: Option<WidgetRef>, new_slot: Option<Slot>, ) -> Option<AnyElement>
SliverMultiBoxAdaptorElement.updateChild: preserves the old layout offset when the
render object was swapped out.Source§fn adaptor_parent_data(
app: &App,
child: Option<AnyElement>,
) -> Option<AnyRenderObject>
fn adaptor_parent_data( app: &App, child: Option<AnyElement>, ) -> Option<AnyRenderObject>
SliverMultiBoxAdaptorParentData.Source§fn layout_offset(app: &App, object: AnyRenderObject) -> Option<f64>
fn layout_offset(app: &App, object: AnyRenderObject) -> Option<f64>
SliverMultiBoxAdaptorParentData.Source§fn set_layout_offset(app: &mut App, object: AnyRenderObject, value: Option<f64>)
fn set_layout_offset(app: &mut App, object: AnyRenderObject, value: Option<f64>)
SliverMultiBoxAdaptorParentData.Source§fn process_element(
self: Handle<Self>,
app: &mut App,
index: i32,
new_children: &BTreeMap<i32, Option<AnyElement>>,
index_to_layout_offset: &HashMap<i32, f64>,
children_updated: &mut bool,
)
fn process_element( self: Handle<Self>, app: &mut App, index: i32, new_children: &BTreeMap<i32, Option<AnyElement>>, index_to_layout_offset: &HashMap<i32, f64>, children_updated: &mut bool, )
processElement closure inside performRebuild.Source§fn extrapolate_max_scroll_offset(
first_index: i32,
last_index: i32,
leading_scroll_offset: f64,
trailing_scroll_offset: f64,
child_count: i32,
) -> f64
fn extrapolate_max_scroll_offset( first_index: i32, last_index: i32, leading_scroll_offset: f64, trailing_scroll_offset: f64, child_count: i32, ) -> f64
_extrapolateMaxScrollOffset.Source§fn in_build_scope(
self: Handle<Self>,
app: &mut App,
callback: impl FnOnce(&mut App) + 'static,
)
fn in_build_scope( self: Handle<Self>, app: &mut App, callback: impl FnOnce(&mut App) + 'static, )
owner!.buildScope(this, callback).Source§fn create_child(
self: Handle<Self>,
app: &mut App,
index: i32,
after: Option<AnyRenderBox>,
)
fn create_child( self: Handle<Self>, app: &mut App, index: i32, after: Option<AnyRenderBox>, )
RenderSliverBoxChildManager::create_child.Source§fn remove_child(self: Handle<Self>, app: &mut App, child: AnyRenderBox)
fn remove_child(self: Handle<Self>, app: &mut App, child: AnyRenderBox)
RenderSliverBoxChildManager::remove_child.Source§fn estimate_max_scroll_offset(
self: Handle<Self>,
app: &App,
constraints: SliverConstraints,
first_index: Option<i32>,
last_index: Option<i32>,
leading_scroll_offset: Option<f64>,
trailing_scroll_offset: Option<f64>,
) -> f64
fn estimate_max_scroll_offset( self: Handle<Self>, app: &App, constraints: SliverConstraints, first_index: Option<i32>, last_index: Option<i32>, leading_scroll_offset: Option<f64>, trailing_scroll_offset: Option<f64>, ) -> f64
RenderSliverBoxChildManager::estimate_max_scroll_offset.Source§fn estimated_child_count(self: Handle<Self>, app: &App) -> Option<i32>
fn estimated_child_count(self: Handle<Self>, app: &App) -> Option<i32>
RenderSliverBoxChildManager::estimated_child_count.Source§fn child_count(self: Handle<Self>, app: &mut App) -> i32
fn child_count(self: Handle<Self>, app: &mut App) -> i32
RenderSliverBoxChildManager::child_count.Source§fn did_start_layout(self: Handle<Self>, app: &App)
fn did_start_layout(self: Handle<Self>, app: &App)
RenderSliverBoxChildManager::did_start_layout.Source§fn did_finish_layout(self: Handle<Self>, app: &App)
fn did_finish_layout(self: Handle<Self>, app: &App)
RenderSliverBoxChildManager::did_finish_layout.Source§fn debug_assert_child_list_locked(self: Handle<Self>, app: &App) -> bool
fn debug_assert_child_list_locked(self: Handle<Self>, app: &App) -> bool
RenderSliverBoxChildManager::debug_assert_child_list_locked.Source§fn did_adopt_child(self: Handle<Self>, app: &mut App, child: AnyRenderBox)
fn did_adopt_child(self: Handle<Self>, app: &mut App, child: AnyRenderBox)
RenderSliverBoxChildManager::did_adopt_child.Source§fn set_did_underflow(self: Handle<Self>, app: &mut App, value: bool)
fn set_did_underflow(self: Handle<Self>, app: &mut App, value: bool)
RenderSliverBoxChildManager::set_did_underflow.Source§fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)
fn update(self: Handle<Self>, app: &mut App, new_widget: WidgetRef)
SliverMultiBoxAdaptorElement.update.Source§fn perform_rebuild(self: Handle<Self>, app: &mut App)
fn perform_rebuild(self: Handle<Self>, app: &mut App)
SliverMultiBoxAdaptorElement.performRebuild.Source§fn forget_child(self: Handle<Self>, app: &mut App, child: AnyElement)
fn forget_child(self: Handle<Self>, app: &mut App, child: AnyElement)
SliverMultiBoxAdaptorElement.forgetChild.Source§fn visit_children(
self: Handle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyElement),
)
fn visit_children( self: Handle<Self>, app: &App, visitor: &mut dyn FnMut(AnyElement), )
SliverMultiBoxAdaptorElement.visitChildren.Source§fn debug_visit_onstage_children(
self: Handle<Self>,
app: &App,
visitor: &mut dyn FnMut(AnyElement),
)
fn debug_visit_onstage_children( self: Handle<Self>, app: &App, visitor: &mut dyn FnMut(AnyElement), )
SliverMultiBoxAdaptorElement.debugVisitOnstageChildren: the children whose
layout offset falls in the sliver’s painted window, which a kept-alive child’s does not.Source§fn insert_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
slot: Option<Slot>,
)
fn insert_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, slot: Option<Slot>, )
SliverMultiBoxAdaptorElement.insertRenderObjectChild.Source§fn move_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
_old_slot: Option<Slot>,
new_slot: Option<Slot>,
)
fn move_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, _old_slot: Option<Slot>, new_slot: Option<Slot>, )
SliverMultiBoxAdaptorElement.moveRenderObjectChild.Source§fn remove_render_object_child(
self: Handle<Self>,
app: &mut App,
child: AnyRenderObject,
_slot: Option<Slot>,
)
fn remove_render_object_child( self: Handle<Self>, app: &mut App, child: AnyRenderObject, _slot: Option<Slot>, )
SliverMultiBoxAdaptorElement.removeRenderObjectChild.Auto Trait Implementations§
impl<W> !RefUnwindSafe for SliverMultiBoxAdaptorElement<W>
impl<W> !Send for SliverMultiBoxAdaptorElement<W>
impl<W> !Sync for SliverMultiBoxAdaptorElement<W>
impl<W> !UnwindSafe for SliverMultiBoxAdaptorElement<W>
impl<W> Forget for SliverMultiBoxAdaptorElement<W>
impl<W> Freeze for SliverMultiBoxAdaptorElement<W>where
<W as RenderObjectWidget>::RenderObject: Sized,
NonZero<u32>: Freeze,
&'static ElementVTable: Freeze,
*const RcInner<dyn Any> is !null: Freeze,
PhantomData<RcInner<dyn Any>>: Freeze,
*const RcInner<dyn Widget> is !null: Freeze,
PhantomData<RcInner<dyn Widget>>: Freeze,
PhantomData<fn() -> BuildOwner>: Freeze,
PhantomData<fn() -> BuildScope>: Freeze,
*const RcInner<Keep> is !null: Freeze,
PhantomData<RcInner<Keep>>: Freeze,
*const RcInner<HashMap<TypeId, AnyElement>> is !null: Freeze,
PhantomData<RcInner<HashMap<TypeId, AnyElement>>>: Freeze,
*const RcInner<NotificationNode> is !null: Freeze,
PhantomData<RcInner<NotificationNode>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<(AnyElement, ())>: Freeze,
PhantomData<(EntityId, Subscription)>: Freeze,
&'static RenderObjectVTable: Freeze,
*const LeafNode<i32, Option<AnyElement>> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(i32, Option<AnyElement>)>>: Freeze,
&'static RenderBoxVTable: Freeze,
PhantomData<fn() -> W>: Freeze,
impl<W> Move for SliverMultiBoxAdaptorElement<W>
impl<W> Unpin for SliverMultiBoxAdaptorElement<W>where
<W as RenderObjectWidget>::RenderObject: Sized,
NonZero<u32>: Unpin,
&'static ElementVTable: Unpin,
Rc<dyn Any>: Unpin,
Rc<dyn Widget>: Unpin,
Rc<Keep>: Unpin,
Rc<HashMap<TypeId, AnyElement>>: Unpin,
Rc<NotificationNode>: Unpin,
*const u8 is !null: Unpin,
Rc<Cell<bool>>: Unpin,
&'static RenderObjectVTable: Unpin,
*const LeafNode<i32, Option<AnyElement>> is !null: Unpin,
Box<(i32, Option<AnyElement>)>: Unpin,
&'static RenderBoxVTable: Unpin,
impl<W> UnsafeUnpin for SliverMultiBoxAdaptorElement<W>where
<W as RenderObjectWidget>::RenderObject: Sized,
NonZeroU32Inner: UnsafeUnpin,
&'static ElementVTable: UnsafeUnpin,
*const RcInner<dyn Any> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Any>>: UnsafeUnpin,
*const RcInner<dyn Widget> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Widget>>: UnsafeUnpin,
PhantomData<fn() -> BuildOwner>: UnsafeUnpin,
PhantomData<fn() -> BuildScope>: UnsafeUnpin,
*const RcInner<Keep> is !null: UnsafeUnpin,
PhantomData<RcInner<Keep>>: UnsafeUnpin,
*const RcInner<HashMap<TypeId, AnyElement>> is !null: UnsafeUnpin,
PhantomData<RcInner<HashMap<TypeId, AnyElement>>>: UnsafeUnpin,
*const RcInner<NotificationNode> is !null: UnsafeUnpin,
PhantomData<RcInner<NotificationNode>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(AnyElement, ())>: UnsafeUnpin,
PhantomData<(EntityId, Subscription)>: UnsafeUnpin,
&'static RenderObjectVTable: UnsafeUnpin,
*const LeafNode<i32, Option<AnyElement>> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(i32, Option<AnyElement>)>>: UnsafeUnpin,
&'static RenderBoxVTable: UnsafeUnpin,
PhantomData<fn() -> W>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> ElementBase for Twhere
T: Element,
impl<T> ElementBase for Twhere
T: Element,
Source§fn rebuild(self: Handle<Self>, app: &mut App, force: bool)
fn rebuild(self: Handle<Self>, app: &mut App, force: bool)
Element.rebuild for an element whose type is known: calls its
perform_rebuild directly rather than through the vtable,
so a first build adds no frame on the way down the tree.Source§fn render_object_attaching_child(
self: Handle<Self>,
app: &App,
) -> Option<AnyElement>
fn render_object_attaching_child( self: Handle<Self>, app: &App, ) -> Option<AnyElement>
Element.renderObjectAttachingChild: the single child, if any.Source§fn mount(
self: Handle<Self>,
app: &mut App,
parent: Option<AnyElement>,
new_slot: Option<Slot>,
)
fn mount( self: Handle<Self>, app: &mut App, parent: Option<AnyElement>, new_slot: Option<Slot>, )
Element.mount.Source§fn attach_render_object(
self: Handle<Self>,
app: &mut App,
new_slot: Option<Slot>,
)
fn attach_render_object( self: Handle<Self>, app: &mut App, new_slot: Option<Slot>, )
Element.attachRenderObject.Source§fn detach_render_object(self: Handle<Self>, app: &mut App)
fn detach_render_object(self: Handle<Self>, app: &mut App)
Element.detachRenderObject.Source§fn deactivate(self: Handle<Self>, app: &mut App)
fn deactivate(self: Handle<Self>, app: &mut App)
Element.deactivate.Source§fn perform_rebuild(self: Handle<Self>, app: &mut App)
fn perform_rebuild(self: Handle<Self>, app: &mut App)
Element.performRebuild: clears the dirty flag.Source§fn did_change_dependencies(self: Handle<Self>, app: &mut App)
fn did_change_dependencies(self: Handle<Self>, app: &mut App)
Element.didChangeDependencies.Source§fn attach_notification_tree(self: Handle<Self>, app: &mut App)
fn attach_notification_tree(self: Handle<Self>, app: &mut App)
Element.attachNotificationTree: inherit the parent’s notification chain.Source§fn build_scope(self: Handle<Self>, app: &App) -> Handle<BuildScope>
fn build_scope(self: Handle<Self>, app: &App) -> Handle<BuildScope>
Element.buildScope: the scope inherited from the parent at mount.Source§fn mark_needs_build(self: Handle<Self>, app: &mut App)
fn mark_needs_build(self: Handle<Self>, app: &mut App)
Element.markNeedsBuild.Source§fn update_inheritance(self: Handle<Self>, app: &mut App)
fn update_inheritance(self: Handle<Self>, app: &mut App)
Element._updateInheritance.Source§fn render_object(self: Handle<Self>, app: &App) -> Option<AnyRenderObject>
fn render_object(self: Handle<Self>, app: &App) -> Option<AnyRenderObject>
Element.renderObject: walk down through the attaching children.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> RenderObjectWidgetCalls for Twhere
T: RenderObjectElement + RenderObjectElementWidget,
impl<T> RenderObjectWidgetCalls for Twhere
T: RenderObjectElement + RenderObjectElementWidget,
Source§fn create_render_object(
self: Handle<T>,
app: &mut App,
widget: &Rc<dyn Widget>,
) -> AnyRenderObject
fn create_render_object( self: Handle<T>, app: &mut App, widget: &Rc<dyn Widget>, ) -> AnyRenderObject
createRenderObject.Source§fn update_render_object(self: Handle<T>, app: &mut App, widget: &Rc<dyn Widget>)
fn update_render_object(self: Handle<T>, app: &mut App, widget: &Rc<dyn Widget>)
updateRenderObject on this element’s render object.Source§fn did_unmount_render_object(
self: Handle<T>,
app: &mut App,
old_widget: &Rc<dyn Widget>,
render_object: AnyRenderObject,
)
fn did_unmount_render_object( self: Handle<T>, app: &mut App, old_widget: &Rc<dyn Widget>, render_object: AnyRenderObject, )
didUnmountRenderObject on this element’s render object.