pub struct Stringifier {
pub format: bool,
pub width: u32,
}Expand description
Stringify DocumentNode to html string.
This contains some options.
Fields§
§format: boolWhether to format the output. Default is false.
width: u32The width of the line to break the code and indent. Default is 20.
Implementations§
Source§impl Stringifier
impl Stringifier
Source§impl Stringifier
impl Stringifier
Sourcepub fn stringify(&self, document: DocumentNode<'_>) -> String
pub fn stringify(&self, document: DocumentNode<'_>) -> String
Stringify DocumentNode to html string.
Trait Implementations§
Source§impl Clone for Stringifier
impl Clone for Stringifier
Source§fn clone(&self) -> Stringifier
fn clone(&self) -> Stringifier
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Stringifier
impl Debug for Stringifier
Auto Trait Implementations§
impl Freeze for Stringifier
impl RefUnwindSafe for Stringifier
impl Send for Stringifier
impl Sync for Stringifier
impl Unpin for Stringifier
impl UnwindSafe for Stringifier
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