pub struct Format {
pub blanks: Vec<String>,
pub indent: Option<Indent>,
pub indent_initial: Option<bool>,
}Expand description
html.format: indent and collapse whitespace for readable HTML; options named as
hast-util-format names them.
Fields§
§blanks: Vec<String>Tag names of elements to put a blank line between, when both are one.
indent: Option<Indent>One level of indentation: a number of spaces or the text itself; two spaces when left out.
indent_initial: Option<bool>Indent the first level, usually <html>’s head and body; true when left out.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Format
impl<'de> Deserialize<'de> for Format
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Transform for Format
impl Transform for Format
fn input(&self) -> TreeKind
fn output(&self) -> TreeKind
fn run<'a>( &self, tree: Tree<'a>, _file: &mut File, alloc: &'a Allocator, ) -> Result<Tree<'a>, Error>
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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