Struct elm_parser::transform::Transformer
source · pub struct Transformer {
pub self_closing_tags: Vec<&'static str>,
pub tags_with_paragraphs: Vec<&'static str>,
pub paragraph_tag: &'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>,
/* private fields */
}Fields§
§paragraph_tag: &'static strImplementations§
source§impl Transformer
impl Transformer
pub fn new( self_closing_tags: Vec<&'static str>, tags_with_paragraphs: Vec<&'static str>, no_x_padding_tags: Vec<&'static str>, paragraph_tag: &'static str, tags_before_non_indents: Vec<&'static str>, tags_with_non_indent_first_child: Vec<&'static str> ) -> Transformer
pub fn pre_process_exercises(&mut self, elm: String) -> String
pub fn transform(&self, elm: String, start_index: usize) -> 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