Struct html_rs::HtmlElement
source · pub struct HtmlElement<'a> { /* private fields */ }
Implementations§
source§impl<'a> HtmlElement<'a>
impl<'a> HtmlElement<'a>
pub fn builder(tag: Tag<'a>) -> HtmlElement<'a>
pub fn text<S: AsRef<str>>(self, text: S) -> HtmlElement<'a>
pub fn attr<K: AsRef<str>, V: AsRef<str>>( self, key: K, value: V, ) -> HtmlElement<'a>
pub fn contents(self, element: HtmlElement<'a>) -> HtmlElement<'a>
Trait Implementations§
source§impl<'a> Debug for HtmlElement<'a>
impl<'a> Debug for HtmlElement<'a>
source§impl Display for HtmlElement<'_>
impl Display for HtmlElement<'_>
source§impl PartialEq for HtmlElement<'_>
impl PartialEq for HtmlElement<'_>
impl Eq for HtmlElement<'_>
Auto Trait Implementations§
impl<'a> Freeze for HtmlElement<'a>
impl<'a> RefUnwindSafe for HtmlElement<'a>
impl<'a> Send for HtmlElement<'a>
impl<'a> Sync for HtmlElement<'a>
impl<'a> Unpin for HtmlElement<'a>
impl<'a> UnwindSafe for HtmlElement<'a>
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