Struct dominator::FragmentBuilder
source · [−]pub struct FragmentBuilder<'a>(_);
Expand description
This is used by the fragment
and box_fragment
macros.
Implementations
sourceimpl<'a> FragmentBuilder<'a>
impl<'a> FragmentBuilder<'a>
pub fn apply<F>(self, f: F) -> Selfwhere
F: FnOnce(Self) -> Self,
pub fn apply_if<F>(self, test: bool, f: F) -> Selfwhere
F: FnOnce(Self) -> Self,
sourcepub fn fragment<F>(self, fragment: &F) -> Selfwhere
F: Fragment,
pub fn fragment<F>(self, fragment: &F) -> Selfwhere
F: Fragment,
Inserts the Fragment
into this FragmentBuilder
. This is the same as DomBuilder::fragment
.
pub fn text(self, value: &str) -> Self
pub fn text_signal<B, C>(self, value: C) -> Selfwhere
B: AsStr,
C: Signal<Item = B> + 'static,
pub fn child<B: BorrowMut<Dom>>(self, child: B) -> Self
pub fn child_signal<B>(self, child: B) -> Selfwhere
B: Signal<Item = Option<Dom>> + 'static,
pub fn children<B: BorrowMut<Dom>, C: IntoIterator<Item = B>>(
self,
children: C
) -> Self
pub fn children_signal_vec<B>(self, children: B) -> Selfwhere
B: SignalVec<Item = Dom> + 'static,
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for FragmentBuilder<'a>
impl<'a> !Send for FragmentBuilder<'a>
impl<'a> !Sync for FragmentBuilder<'a>
impl<'a> Unpin for FragmentBuilder<'a>
impl<'a> !UnwindSafe for FragmentBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more