pub enum Parent<'a, B: Backend + ?Sized> {
Window(&'a B::Window),
Scroll(&'a B::Widget),
}Expand description
Where a new widget goes: straight into a window’s content area, or into the content of a scroll area, which scrolls with it. Frames are relative to that parent’s content.
Variants§
Trait Implementations§
impl<B: Backend + ?Sized> Copy for Parent<'_, B>
Auto Trait Implementations§
impl<'a, B> Freeze for Parent<'a, B>where
B: ?Sized,
impl<'a, B> RefUnwindSafe for Parent<'a, B>
impl<'a, B> Send for Parent<'a, B>
impl<'a, B> Sync for Parent<'a, B>
impl<'a, B> Unpin for Parent<'a, B>where
B: ?Sized,
impl<'a, B> UnsafeUnpin for Parent<'a, B>where
B: ?Sized,
impl<'a, B> UnwindSafe for Parent<'a, B>
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