pub struct Part<M> { /* private fields */ }Expand description
What a widget puts in another widget’s bay. The host lays it out in the owner’s popover or
dialog, and sends what it does back to the widget that made it.
Implementations§
Source§impl<M> Part<M>
impl<M> Part<M>
pub fn new(content: Node<M>) -> Self
Sourcepub fn on_open(self, message: M) -> Self
pub fn on_open(self, message: M) -> Self
Sent each time the popover or dialog it’s in opens, if the part shows then.
Sourcepub fn on_close(self, message: M) -> Self
pub fn on_close(self, message: M) -> Self
Sent each time the popover or dialog it’s in starts closing.
pub fn map<N: 'static>(self, f: &(impl Fn(M) -> N + Clone + 'static)) -> Part<N>where
M: 'static,
Trait Implementations§
Auto Trait Implementations§
impl<M> !RefUnwindSafe for Part<M>
impl<M> !Send for Part<M>
impl<M> !Sync for Part<M>
impl<M> !UnwindSafe for Part<M>
impl<M> Freeze for Part<M>
impl<M> Unpin for Part<M>
impl<M> UnsafeUnpin for Part<M>
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