Struct dmat_components::components::container::ContainerProps
source · pub struct ContainerProps<TchildrenSignal: SignalVec<Item = Dom> = Always<Dom>, TApplyFn: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement> = fn(_: DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>> {
pub children: TchildrenSignal,
pub apply: Option<TApplyFn>,
}
Fields§
§children: TchildrenSignal
§apply: Option<TApplyFn>
Implementations§
source§impl<TchildrenSignal: SignalVec<Item = Dom>, TApplyFn: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>> ContainerProps<TchildrenSignal, TApplyFn>
impl<TchildrenSignal: SignalVec<Item = Dom>, TApplyFn: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>> ContainerProps<TchildrenSignal, TApplyFn>
pub fn children( self, v: impl Into<Vec<Dom>> ) -> ContainerProps<Always<Dom>, TApplyFn>
pub fn children_signal_vec<TchildrenSignalNew: SignalVec<Item = Dom>>( self, v: TchildrenSignalNew ) -> ContainerProps<TchildrenSignalNew, TApplyFn>
source§impl<TchildrenSignal: SignalVec<Item = Dom>, TApplyFn: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>> ContainerProps<TchildrenSignal, TApplyFn>
impl<TchildrenSignal: SignalVec<Item = Dom>, TApplyFn: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>> ContainerProps<TchildrenSignal, TApplyFn>
pub fn apply<TApplyFnNew: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>>( self, v: TApplyFnNew ) -> ContainerProps<TchildrenSignal, TApplyFnNew>
Trait Implementations§
source§impl<TchildrenSignal: SignalVec<Item = Dom>, TApplyFn: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>> ContainerPropsTrait for ContainerProps<TchildrenSignal, TApplyFn>
impl<TchildrenSignal: SignalVec<Item = Dom>, TApplyFn: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>> ContainerPropsTrait for ContainerProps<TchildrenSignal, TApplyFn>
type TchildrenSignal = TchildrenSignal
type TApplyFn = TApplyFn
fn take(self) -> ContainerProps<TchildrenSignal, TApplyFn>
Auto Trait Implementations§
impl<TchildrenSignal, TApplyFn> RefUnwindSafe for ContainerProps<TchildrenSignal, TApplyFn>where TApplyFn: RefUnwindSafe, TchildrenSignal: RefUnwindSafe,
impl<TchildrenSignal, TApplyFn> Send for ContainerProps<TchildrenSignal, TApplyFn>where TApplyFn: Send, TchildrenSignal: Send,
impl<TchildrenSignal, TApplyFn> Sync for ContainerProps<TchildrenSignal, TApplyFn>where TApplyFn: Sync, TchildrenSignal: Sync,
impl<TchildrenSignal, TApplyFn> Unpin for ContainerProps<TchildrenSignal, TApplyFn>where TApplyFn: Unpin, TchildrenSignal: Unpin,
impl<TchildrenSignal, TApplyFn> UnwindSafe for ContainerProps<TchildrenSignal, TApplyFn>where TApplyFn: UnwindSafe, TchildrenSignal: UnwindSafe,
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