pub struct WrapperFactory { /* private fields */ }
Implementations§
Source§impl WrapperFactory
impl WrapperFactory
pub fn new() -> Self
pub fn with_catch_all( catch_all: impl Fn(Widget) -> Rc<dyn LayoutElement> + 'static, ) -> Self
pub fn set_wrapper<W: IntoWidget + 'static, L: LayoutWidgetWrapper<W> + 'static>( &mut self, )
pub fn wrap<W: IntoWidget + 'static>(&self, widget: W) -> Rc<dyn LayoutElement>
Auto Trait Implementations§
impl Freeze for WrapperFactory
impl !RefUnwindSafe for WrapperFactory
impl !Send for WrapperFactory
impl !Sync for WrapperFactory
impl Unpin for WrapperFactory
impl !UnwindSafe for WrapperFactory
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