Trait ToSyntax

Source
pub trait ToSyntax {
    // Required method
    fn to_syntax(
        &self,
        buffer: &mut dyn Write,
        use_macros: bool,
        indent: usize,
    ) -> Result;
}
Expand description

A trait to convert html string into sauron view syntax

Required Methods§

Source

fn to_syntax( &self, buffer: &mut dyn Write, use_macros: bool, indent: usize, ) -> Result

convert the html string into sauron view syntax

Implementations on Foreign Types§

Source§

impl ToSyntax for Value

Source§

fn to_syntax( &self, buffer: &mut dyn Write, _use_macros: bool, _indent: usize, ) -> Result

Source§

impl<MSG: 'static> ToSyntax for Attribute<MSG>

Source§

fn to_syntax( &self, buffer: &mut dyn Write, use_macros: bool, indent: usize, ) -> Result

Source§

impl<MSG: 'static> ToSyntax for Element<MSG>

Source§

fn to_syntax( &self, buffer: &mut dyn Write, use_macros: bool, indent: usize, ) -> Result

Source§

impl<MSG: 'static> ToSyntax for Node<MSG>

Source§

fn to_syntax( &self, buffer: &mut dyn Write, use_macros: bool, indent: usize, ) -> Result

Implementors§