pub struct Buffer<W, C> { /* private fields */ }
Implementations§
Source§impl<'a, W: Write> Buffer<W, Body<'a>>
impl<'a, W: Write> Buffer<W, Body<'a>>
pub fn node(self, tag: &'a str) -> Buffer<W, Element<'a>>
pub fn try_node(self, tag: &'a str) -> Result<Buffer<W, Element<'a>>, Error>
pub fn raw<V: Display>(self, value: V) -> Self
pub fn try_raw<V: Display>(self, value: V) -> Result<Self, Error>
pub fn text(self, content: &str) -> Self
pub fn try_text(self, content: &str) -> Result<Self, Error>
Source§impl<'a, W: Write> Buffer<W, Element<'a>>
impl<'a, W: Write> Buffer<W, Element<'a>>
pub fn attr<T>(self, attr: T) -> Self
pub fn try_attr<T>(self, attr: T) -> Result<Self, Error>
pub fn close(self) -> Buffer<W, Body<'a>>
pub fn try_close(self) -> Result<Buffer<W, Body<'a>>, Error>
pub fn content<F>(self, children: F) -> Buffer<W, Body<'a>>
pub fn try_content<F>(self, children: F) -> Result<Buffer<W, Body<'a>>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<W, C> Freeze for Buffer<W, C>
impl<W, C> RefUnwindSafe for Buffer<W, C>where
W: RefUnwindSafe,
C: RefUnwindSafe,
impl<W, C> Send for Buffer<W, C>
impl<W, C> Sync for Buffer<W, C>
impl<W, C> Unpin for Buffer<W, C>
impl<W, C> UnwindSafe for Buffer<W, C>where
W: UnwindSafe,
C: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)