pub struct Widget { /* private fields */ }Expand description
The common type of all widget can convert to.
Implementations§
Source§impl Widget
impl Widget
pub fn attach_data<D: Query>(self, data: D, ctx: &BuildCtx<'_>) -> Widget
pub fn attach_state_data<D: Query>( self, data: impl StateReader<Value = D>, ctx: &BuildCtx<'_>, ) -> Widget
pub fn attach_anonymous_data(self, data: impl Any, ctx: &BuildCtx<'_>) -> Widget
Trait Implementations§
Source§impl<V: ComposeBuilder + 'static, PP> FromAnother<PP, Box<dyn ComposeBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
impl<V: ComposeBuilder + 'static, PP> FromAnother<PP, Box<dyn ComposeBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
fn from_another(value: PP, ctx: &BuildCtx<'_>) -> Self
Source§impl<V: ComposeChildBuilder + 'static, PP> FromAnother<PP, Box<dyn ComposeChildBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
impl<V: ComposeChildBuilder + 'static, PP> FromAnother<PP, Box<dyn ComposeChildBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
fn from_another(value: PP, ctx: &BuildCtx<'_>) -> Self
Source§impl<V: RenderBuilder + 'static, PP> FromAnother<PP, Box<dyn RenderBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
impl<V: RenderBuilder + 'static, PP> FromAnother<PP, Box<dyn RenderBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
fn from_another(value: PP, ctx: &BuildCtx<'_>) -> Self
Source§impl<V: SelfBuilder + 'static, PP> FromAnother<PP, Box<dyn SelfBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
impl<V: SelfBuilder + 'static, PP> FromAnother<PP, Box<dyn SelfBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
fn from_another(value: PP, ctx: &BuildCtx<'_>) -> Self
Source§impl<V: WidgetBuilder + 'static, PP> FromAnother<PP, Box<dyn WidgetBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
impl<V: WidgetBuilder + 'static, PP> FromAnother<PP, Box<dyn WidgetBuilder>> for Widgetwhere
PP: InnerPipe<Value = Option<V>>,
fn from_another(value: PP, ctx: &BuildCtx<'_>) -> Self
Source§impl<W: ComposeBuilder> FromAnother<W, &dyn ComposeBuilder> for Widget
impl<W: ComposeBuilder> FromAnother<W, &dyn ComposeBuilder> for Widget
fn from_another(value: W, ctx: &BuildCtx<'_>) -> Self
Source§impl<W: ComposeChildBuilder> FromAnother<W, &dyn ComposeChildBuilder> for Widget
impl<W: ComposeChildBuilder> FromAnother<W, &dyn ComposeChildBuilder> for Widget
fn from_another(value: W, ctx: &BuildCtx<'_>) -> Self
Source§impl<W: RenderBuilder> FromAnother<W, &dyn RenderBuilder> for Widget
impl<W: RenderBuilder> FromAnother<W, &dyn RenderBuilder> for Widget
fn from_another(value: W, ctx: &BuildCtx<'_>) -> Self
Source§impl<W: WidgetBuilder> FromAnother<W, &dyn WidgetBuilder> for Widget
impl<W: WidgetBuilder> FromAnother<W, &dyn WidgetBuilder> for Widget
fn from_another(value: W, ctx: &BuildCtx<'_>) -> Self
Auto Trait Implementations§
impl Freeze for Widget
impl RefUnwindSafe for Widget
impl Send for Widget
impl Sync for Widget
impl Unpin for Widget
impl UnwindSafe for Widget
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
Source§impl<C, T, M> ChildFrom<C, (M,)> for Twhere
T: FromAnother<C, M>,
impl<C, T, M> ChildFrom<C, (M,)> for Twhere
T: FromAnother<C, M>,
fn child_from(value: C, ctx: &BuildCtx<'_>) -> T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.