Struct elm_parser::transform::Transformer
source · pub struct Transformer {
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>,
/* private fields */
}Fields§
§auto_wrappers: Vec<AutoWrapper>Implementations§
source§impl Transformer
impl Transformer
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> ) -> Transformer
pub fn pre_process_exercises(&mut self, elm: &String) -> String
pub fn pre_process_solutions(&mut self, elm: String) -> String
pub fn remove_empty_line_above( &mut self, elm: String, tags: Vec<&str>, ignore_prop: Option<(&str, &str)> ) -> String
pub fn auto_increamental_title( &mut self, elm: String, tag_name: &str, title_label: &str, wrapper: Option<&str>, wrapper_break_on: Option<&str> ) -> String
pub fn transform(&mut self, elm: String, start_index: isize) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transformer
impl RefUnwindSafe for Transformer
impl Send for Transformer
impl Sync for Transformer
impl Unpin for Transformer
impl UnwindSafe for Transformer
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