Struct rstml_component::For
source · pub struct For<I, F>where
I: IntoIterator,
F: FnMut(&mut HtmlFormatter<'_>, <I as IntoIterator>::Item) -> Result,{
pub items: I,
pub children: F,
}Fields§
§items: I§children: FTrait Implementations§
source§impl<I, F> HtmlComponent for For<I, F>where
I: IntoIterator,
F: FnMut(&mut HtmlFormatter<'_>, <I as IntoIterator>::Item) -> Result,
impl<I, F> HtmlComponent for For<I, F>where I: IntoIterator, F: FnMut(&mut HtmlFormatter<'_>, <I as IntoIterator>::Item) -> Result,
source§impl<I, F> HtmlContent for For<I, F>where
I: IntoIterator,
F: FnMut(&mut HtmlFormatter<'_>, <I as IntoIterator>::Item) -> Result,
impl<I, F> HtmlContent for For<I, F>where I: IntoIterator, F: FnMut(&mut HtmlFormatter<'_>, <I as IntoIterator>::Item) -> Result,
source§fn fmt(self, formatter: &mut HtmlFormatter<'_>) -> Result
fn fmt(self, formatter: &mut HtmlFormatter<'_>) -> Result
Formats the content and writes it to the provided HtmlFormatter. Read more
source§fn write_to(self, buffer: &mut BytesMut) -> Result
fn write_to(self, buffer: &mut BytesMut) -> Result
Writes the formatted content to the provided byte buffer. Read more
Auto Trait Implementations§
impl<I, F> RefUnwindSafe for For<I, F>where F: RefUnwindSafe, I: RefUnwindSafe,
impl<I, F> Send for For<I, F>where F: Send, I: Send,
impl<I, F> Sync for For<I, F>where F: Sync, I: Sync,
impl<I, F> Unpin for For<I, F>where F: Unpin, I: Unpin,
impl<I, F> UnwindSafe for For<I, F>where F: UnwindSafe, I: 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