Struct elm_parser::parser::Parser
source · pub struct Parser {
pub self_closing_tags: Vec<&'static str>,
pub tags_before_non_indents: Vec<&'static str>,
pub no_x_padding_tags: Vec<&'static str>,
pub tags_with_non_indent_first_child: Vec<&'static str>,
pub tags_with_no_indents: Vec<&'static str>,
pub auto_wrappers: Vec<AutoWrapper>,
pub track_line_delta: isize,
}Fields§
§auto_wrappers: Vec<AutoWrapper>§track_line_delta: isizeImplementations§
source§impl Parser
impl Parser
pub fn new( self_closing_tags: Vec<&'static str>, auto_wrappers: Vec<AutoWrapper>, no_x_padding_tags: Vec<&'static str>, tags_before_non_indents: Vec<&'static str>, tags_with_non_indent_first_child: Vec<&'static str>, tags_with_no_indents: Vec<&'static str> ) -> Parser
pub fn transform(&mut self, elm: String, start_index: isize) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
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