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 ContainerProps

source

pub fn new() -> Self

source§

impl<TchildrenSignal: SignalVec<Item = Dom>, TApplyFn: FnOnce(DomBuilder<HtmlElement>) -> DomBuilder<HtmlElement>> ContainerProps<TchildrenSignal, TApplyFn>

source

pub fn children( self, v: impl Into<Vec<Dom>> ) -> ContainerProps<Always<Dom>, TApplyFn>

source

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>

source

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>

§

type TchildrenSignal = TchildrenSignal

§

type TApplyFn = TApplyFn

source§

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.