pub struct AnyElement { /* private fields */ }Expand description
An element with its widget type erased, so that a parent can hold children of different widget types.
Build one with IntoElement::into_any. Its contents are private: only
mounting reads them.
Trait Implementations§
Source§impl IntoElement for AnyElement
impl IntoElement for AnyElement
Source§fn into_any(self) -> AnyElement
fn into_any(self) -> AnyElement
Erases the widget type of this element.
Auto Trait Implementations§
impl !RefUnwindSafe for AnyElement
impl !Send for AnyElement
impl !Sync for AnyElement
impl !UnwindSafe for AnyElement
impl Forget for AnyElement
impl Freeze for AnyElement
impl Move for AnyElement
impl Unpin for AnyElement
impl UnsafeUnpin for AnyElement
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