pub struct HTMLConstructor { /* private fields */ }
Expand description
Struct for generation of HTML strings.
Implementations§
Source§impl HTMLConstructor
impl HTMLConstructor
Sourcepub fn new(out_len: usize, pretty_print: bool) -> HTMLConstructor
pub fn new(out_len: usize, pretty_print: bool) -> HTMLConstructor
Creates a new HTMLConstructor.
Sourcepub fn construct(&mut self, ast: Node<ASTElement>) -> String
pub fn construct(&mut self, ast: Node<ASTElement>) -> String
Generates an HTML string from an ASTElement
Auto Trait Implementations§
impl Freeze for HTMLConstructor
impl RefUnwindSafe for HTMLConstructor
impl Send for HTMLConstructor
impl Sync for HTMLConstructor
impl Unpin for HTMLConstructor
impl UnwindSafe for HTMLConstructor
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