Struct silkenweb::node::element::GenericElement
source · pub struct GenericElement<D: Dom = DefaultDom, Mutability = Mut> { /* private fields */ }
Expand description
A generic HTML element.
Where available, specific DOM elements from crate::elements::html
should
be used in preference to this.
Implementations§
source§impl<D: Dom> GenericElement<D>
impl<D: Dom> GenericElement<D>
source§impl<Param, D> GenericElement<Template<Param, D>>where
Param: 'static,
D: InstantiableDom,
impl<Param, D> GenericElement<Template<Param, D>>where
Param: 'static,
D: InstantiableDom,
pub fn on_instantiate( self, f: impl 'static + Fn(GenericElement<D>, &Param) -> GenericElement<D> ) -> Self
source§impl<Param, D> GenericElement<Template<Param, D>, Const>where
D: InstantiableDom,
Param: 'static,
impl<Param, D> GenericElement<Template<Param, D>, Const>where
D: InstantiableDom,
Param: 'static,
sourcepub fn instantiate(&self, param: &Param) -> GenericElement<D>
pub fn instantiate(&self, param: &Param) -> GenericElement<D>
Instantiate a template with param
.
See Template
for an example.
Trait Implementations§
source§impl<D: Dom> Element for GenericElement<D>
impl<D: Dom> Element for GenericElement<D>
type Dom = D
type DomElement = Element
source§fn class<'a, T>(self, class: impl RefSignalOrValue<'a, Item = T>) -> Self
fn class<'a, T>(self, class: impl RefSignalOrValue<'a, Item = T>) -> Self
Add a class to the element. Read more
source§fn classes<'a, T, Iter>(
self,
classes: impl RefSignalOrValue<'a, Item = Iter>
) -> Self
fn classes<'a, T, Iter>( self, classes: impl RefSignalOrValue<'a, Item = Iter> ) -> Self
Set the classes on an element Read more
source§fn attribute<'a>(
self,
name: &str,
value: impl RefSignalOrValue<'a, Item = impl Attribute>
) -> Self
fn attribute<'a>( self, name: &str, value: impl RefSignalOrValue<'a, Item = impl Attribute> ) -> Self
Set an attribute Read more
source§fn style_property<'a>(
self,
name: impl Into<String>,
value: impl RefSignalOrValue<'a, Item = impl AsRef<str> + 'a>
) -> Self
fn style_property<'a>( self, name: impl Into<String>, value: impl RefSignalOrValue<'a, Item = impl AsRef<str> + 'a> ) -> Self
Set an inline style property Read more
source§fn effect(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self
fn effect(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self
Apply an effect after the next render. Read more
source§fn effect_signal<T>(
self,
sig: impl Signal<Item = T> + 'static,
f: impl Clone + Fn(&Self::DomElement, T) + 'static
) -> Selfwhere
T: 'static,
fn effect_signal<T>(
self,
sig: impl Signal<Item = T> + 'static,
f: impl Clone + Fn(&Self::DomElement, T) + 'static
) -> Selfwhere
T: 'static,
Apply an effect after the next render each time a signal yields a new
value.
source§fn map_element(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self
fn map_element(self, f: impl FnOnce(&Self::DomElement) + 'static) -> Self
Map a function over the element.
source§fn map_element_signal<T>(
self,
sig: impl Signal<Item = T> + 'static,
f: impl Clone + Fn(&Self::DomElement, T) + 'static
) -> Selfwhere
T: 'static,
fn map_element_signal<T>(
self,
sig: impl Signal<Item = T> + 'static,
f: impl Clone + Fn(&Self::DomElement, T) + 'static
) -> Selfwhere
T: 'static,
Map a function over the element each time a signal changes.
source§fn handle(&self) -> ElementHandle<Self::Dom, Self::DomElement>
fn handle(&self) -> ElementHandle<Self::Dom, Self::DomElement>
Get a handle to the element. Read more
source§impl<D: Dom> Executor for GenericElement<D>
impl<D: Dom> Executor for GenericElement<D>
source§impl<Dom: Dom, Mutability> From<Address<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Address<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Animate<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Animate<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Article<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Article<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom> From<Blockquote<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<Blockquote<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: Blockquote<Dom, Mut>) -> Self
fn from(elem: Blockquote<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<Blockquote<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Blockquote<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: Blockquote<Dom, Mutability>) -> Self
fn from(elem: Blockquote<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<Caption<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Caption<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<ClipPath<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<ClipPath<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Colgroup<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Colgroup<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<D: InstantiableDom> From<Component<D>> for GenericElement<D>
impl<D: InstantiableDom> From<Component<D>> for GenericElement<D>
source§impl<D: InstantiableDom> From<Component<D>> for GenericElement<D, Const>
impl<D: InstantiableDom> From<Component<D>> for GenericElement<D, Const>
source§impl<Dom: Dom, Mutability> From<Datalist<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Datalist<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Details<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Details<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Ellipse<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Ellipse<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<FeBlend<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeBlend<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom> From<FeColorMatrix<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeColorMatrix<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeColorMatrix<Dom, Mut>) -> Self
fn from(elem: FeColorMatrix<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeColorMatrix<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeColorMatrix<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeColorMatrix<Dom, Mutability>) -> Self
fn from(elem: FeColorMatrix<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeComponentTransfer<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeComponentTransfer<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeComponentTransfer<Dom, Mut>) -> Self
fn from(elem: FeComponentTransfer<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeComponentTransfer<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeComponentTransfer<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeComponentTransfer<Dom, Mutability>) -> Self
fn from(elem: FeComponentTransfer<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeComposite<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeComposite<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeComposite<Dom, Mut>) -> Self
fn from(elem: FeComposite<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeComposite<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeComposite<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeComposite<Dom, Mutability>) -> Self
fn from(elem: FeComposite<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeConvolveMatrix<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeConvolveMatrix<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeConvolveMatrix<Dom, Mut>) -> Self
fn from(elem: FeConvolveMatrix<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeConvolveMatrix<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeConvolveMatrix<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeConvolveMatrix<Dom, Mutability>) -> Self
fn from(elem: FeConvolveMatrix<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeDiffuseLighting<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeDiffuseLighting<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeDiffuseLighting<Dom, Mut>) -> Self
fn from(elem: FeDiffuseLighting<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeDiffuseLighting<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeDiffuseLighting<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeDiffuseLighting<Dom, Mutability>) -> Self
fn from(elem: FeDiffuseLighting<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeDisplacementMap<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeDisplacementMap<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeDisplacementMap<Dom, Mut>) -> Self
fn from(elem: FeDisplacementMap<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeDisplacementMap<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeDisplacementMap<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeDisplacementMap<Dom, Mutability>) -> Self
fn from(elem: FeDisplacementMap<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeDistantLight<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeDistantLight<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeDistantLight<Dom, Mut>) -> Self
fn from(elem: FeDistantLight<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeDistantLight<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeDistantLight<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeDistantLight<Dom, Mutability>) -> Self
fn from(elem: FeDistantLight<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeFlood<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeFlood<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<FeFuncA<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeFuncA<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<FeFuncB<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeFuncB<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<FeFuncG<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeFuncG<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<FeFuncR<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeFuncR<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom> From<FeGaussianBlur<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeGaussianBlur<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeGaussianBlur<Dom, Mut>) -> Self
fn from(elem: FeGaussianBlur<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeGaussianBlur<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeGaussianBlur<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeGaussianBlur<Dom, Mutability>) -> Self
fn from(elem: FeGaussianBlur<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeImage<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeImage<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<FeMerge<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeMerge<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom> From<FeMergeNode<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeMergeNode<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeMergeNode<Dom, Mut>) -> Self
fn from(elem: FeMergeNode<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeMergeNode<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeMergeNode<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeMergeNode<Dom, Mutability>) -> Self
fn from(elem: FeMergeNode<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeMorphology<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeMorphology<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeMorphology<Dom, Mut>) -> Self
fn from(elem: FeMorphology<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeMorphology<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeMorphology<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeMorphology<Dom, Mutability>) -> Self
fn from(elem: FeMorphology<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeOffset<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeOffset<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom> From<FePointLight<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FePointLight<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FePointLight<Dom, Mut>) -> Self
fn from(elem: FePointLight<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FePointLight<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FePointLight<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FePointLight<Dom, Mutability>) -> Self
fn from(elem: FePointLight<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeSpecularLighting<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeSpecularLighting<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeSpecularLighting<Dom, Mut>) -> Self
fn from(elem: FeSpecularLighting<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeSpecularLighting<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeSpecularLighting<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeSpecularLighting<Dom, Mutability>) -> Self
fn from(elem: FeSpecularLighting<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeSpotLight<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeSpotLight<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeSpotLight<Dom, Mut>) -> Self
fn from(elem: FeSpotLight<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeSpotLight<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeSpotLight<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeSpotLight<Dom, Mutability>) -> Self
fn from(elem: FeSpotLight<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<FeTurbulence<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<FeTurbulence<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: FeTurbulence<Dom, Mut>) -> Self
fn from(elem: FeTurbulence<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<FeTurbulence<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<FeTurbulence<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: FeTurbulence<Dom, Mutability>) -> Self
fn from(elem: FeTurbulence<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<Fieldset<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Fieldset<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: Figcaption<Dom, Mut>) -> Self
fn from(elem: Figcaption<Dom, Mut>) -> Self
Converts to this type from the input type.
source§fn from(elem: Figcaption<Dom, Mutability>) -> Self
fn from(elem: Figcaption<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom> From<ForeignObject<Dom>> for GenericElement<Dom, Const>
impl<Dom: Dom> From<ForeignObject<Dom>> for GenericElement<Dom, Const>
source§fn from(elem: ForeignObject<Dom, Mut>) -> Self
fn from(elem: ForeignObject<Dom, Mut>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<ForeignObject<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<ForeignObject<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§fn from(elem: ForeignObject<Dom, Mutability>) -> Self
fn from(elem: ForeignObject<Dom, Mutability>) -> Self
Converts to this type from the input type.
source§impl<D: Dom, Mutability> From<GenericElement<D, Mutability>> for Node<D>
impl<D: Dom, Mutability> From<GenericElement<D, Mutability>> for Node<D>
source§fn from(elem: GenericElement<D, Mutability>) -> Self
fn from(elem: GenericElement<D, Mutability>) -> Self
Converts to this type from the input type.
source§impl<Dom: Dom, Mutability> From<Metadata<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Metadata<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Noscript<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Noscript<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Optgroup<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Optgroup<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Pattern<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Pattern<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Picture<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Picture<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Polygon<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Polygon<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Polyline<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Polyline<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Progress<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Progress<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Section<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Section<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Summary<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Summary<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<TextPath<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<TextPath<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<Dom: Dom, Mutability> From<Textarea<Dom, Mutability>> for GenericElement<Dom, Mutability>
impl<Dom: Dom, Mutability> From<Textarea<Dom, Mutability>> for GenericElement<Dom, Mutability>
source§impl<D: Dom> ParentElement<D> for GenericElement<D>
impl<D: Dom> ParentElement<D> for GenericElement<D>
source§fn text<'a, T>(self, child: impl RefSignalOrValue<'a, Item = T>) -> Self
fn text<'a, T>(self, child: impl RefSignalOrValue<'a, Item = T>) -> Self
Add a text child to this element Read more
source§fn optional_child(
self,
child: impl SignalOrValue<Item = Option<impl ChildNode<D>>>
) -> Self
fn optional_child( self, child: impl SignalOrValue<Item = Option<impl ChildNode<D>>> ) -> Self
Add an optional child to the element. Read more
source§fn children<N>(self, children: impl IntoIterator<Item = N>) -> Self
fn children<N>(self, children: impl IntoIterator<Item = N>) -> Self
Add children to the element. Read more
source§fn children_signal<N>(
self,
children: impl SignalVec<Item = N> + 'static
) -> Self
fn children_signal<N>( self, children: impl SignalVec<Item = N> + 'static ) -> Self
source§impl<D: InstantiableDom> ShadowRootParent<D> for GenericElement<D>
impl<D: InstantiableDom> ShadowRootParent<D> for GenericElement<D>
source§fn attach_shadow_children<N>(
self,
children: impl IntoIterator<Item = N> + 'static
) -> Self
fn attach_shadow_children<N>( self, children: impl IntoIterator<Item = N> + 'static ) -> Self
impl<D: Dom, Mutability> Value for GenericElement<D, Mutability>
Auto Trait Implementations§
impl<D, Mutability> Freeze for GenericElement<D, Mutability>where
<D as Dom>::Element: Freeze,
impl<D = Dry, Mutability = Mut> !RefUnwindSafe for GenericElement<D, Mutability>
impl<D = Dry, Mutability = Mut> !Send for GenericElement<D, Mutability>
impl<D = Dry, Mutability = Mut> !Sync for GenericElement<D, Mutability>
impl<D, Mutability> Unpin for GenericElement<D, Mutability>
impl<D = Dry, Mutability = Mut> !UnwindSafe for GenericElement<D, Mutability>
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<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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<'a, T> RefSignalOrValue<'a> for Twhere
T: RefValue<'a> + 'a,
impl<'a, T> RefSignalOrValue<'a> for Twhere
T: RefValue<'a> + 'a,
§type Map<'b: 'a, F: FnMut(<T as RefSignalOrValue<'a>>::Item) -> R + 'b, R: RefSignalOrValue<'b, Item = R> + 'b> = R
type Map<'b: 'a, F: FnMut(<T as RefSignalOrValue<'a>>::Item) -> R + 'b, R: RefSignalOrValue<'b, Item = R> + 'b> = R
§type Signal = Always<<T as RefSignalOrValue<'a>>::Item>
type Signal = Always<<T as RefSignalOrValue<'a>>::Item>
The signal type. Use
Always
for value types.source§fn map<'b, F, R>(
self,
callback: F
) -> <T as RefSignalOrValue<'a>>::Map<'b, F, R>where
'b: 'a,
R: RefSignalOrValue<'b, Item = R> + 'b,
F: FnMut(<T as RefSignalOrValue<'a>>::Item) -> R + 'b,
fn map<'b, F, R>(
self,
callback: F
) -> <T as RefSignalOrValue<'a>>::Map<'b, F, R>where
'b: 'a,
R: RefSignalOrValue<'b, Item = R> + 'b,
F: FnMut(<T as RefSignalOrValue<'a>>::Item) -> R + 'b,
Map a function over this signal/value to produce a new signal/value.
source§fn select<FVal, FSig, Data, Out>(
self,
fn_val: FVal,
_fn_sig: FSig,
data: Data
) -> Outwhere
FVal: FnOnce(Data, <T as RefSignalOrValue<'a>>::Item) -> Out,
FSig: FnOnce(Data, <T as RefSignalOrValue<'a>>::Signal) -> Out,
fn select<FVal, FSig, Data, Out>(
self,
fn_val: FVal,
_fn_sig: FSig,
data: Data
) -> Outwhere
FVal: FnOnce(Data, <T as RefSignalOrValue<'a>>::Item) -> Out,
FSig: FnOnce(Data, <T as RefSignalOrValue<'a>>::Signal) -> Out,
Select a function based on whether this is a signal or value. Read more
source§fn select_spawn<FVal, FSig, Task, Exec>(
self,
fn_val: FVal,
_fn_sig: FSig,
executor: &mut Exec
)
fn select_spawn<FVal, FSig, Task, Exec>( self, fn_val: FVal, _fn_sig: FSig, executor: &mut Exec )
Select a function based on whether this is a signal or value. Read more