pub struct Portal<T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T> ChildrenExt for Portal<T>
impl<T> ChildrenExt for Portal<T>
fn get_children(&mut self) -> &mut Vec<Element>
fn children_iter<I>(self, children_iter: I) -> Self
fn children<V>(self, children: V) -> Self
fn maybe_child<C>(self, child: Option<C>) -> Selfwhere
C: IntoElement,
fn child<C>(self, child: C) -> Selfwhere
C: IntoElement,
Source§impl<T> Component for Portal<T>
impl<T> Component for Portal<T>
fn render(&self) -> impl IntoElement
fn render_key(&self) -> DiffKey
Source§impl<T> ContainerSizeExt for Portal<T>
impl<T> ContainerSizeExt for Portal<T>
Source§impl<T> LayoutExt for Portal<T>
impl<T> LayoutExt for Portal<T>
fn get_layout(&mut self) -> &mut LayoutData
fn layout(self, layout: LayoutData) -> Self
impl<T> StructuralPartialEq for Portal<T>
Auto Trait Implementations§
impl<T> Freeze for Portal<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Portal<T>
impl<T> !Send for Portal<T>
impl<T> !Sync for Portal<T>
impl<T> Unpin for Portal<T>where
T: Unpin,
impl<T> !UnwindSafe for Portal<T>
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
§impl<T> ComponentKey for Twhere
T: Component,
impl<T> ComponentKey for Twhere
T: Component,
fn default_key(&self) -> DiffKey
§impl<T> ComponentProps for T
impl<T> ComponentProps for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more