pub struct Desugarer {
pub json: String,
pub last_id: usize,
}
Fields§
§json: String
§last_id: usize
Implementations§
Source§impl Desugarer
impl Desugarer
pub fn new(json: &str, last_id: usize) -> Desugarer
pub fn pre_process_exercises(&mut self) -> Desugarer
pub fn add_increamental_attr( &mut self, tags_attributes: Vec<(&str, &str)>, article_types: &Vec<String>, ) -> Desugarer
pub fn auto_increamental_title( &mut self, tag_name: &str, title_label: &str, article_types: &Vec<String>, ) -> Desugarer
pub fn wrap_children<'a>( &mut self, elements: Vec<&'static str>, wrap_with: &str, ignore_elements: &Option<Vec<IgnoreOptions>>, ) -> Desugarer
pub fn wrap_block_delimited(&self, wrap_with: &str) -> Desugarer
pub fn wrap_recursive<'a>( &self, root: &'a mut DataCell, wrap_with: &str, ) -> Desugarer
pub fn add_indent(&mut self, paragraph_tags: &Vec<&str>) -> Desugarer
pub fn paragraph_first_child_is_text(element: &DataCell) -> bool
pub fn is_first_child( element_id: usize, parent: &Option<&mut DataCell>, options: &ParagraphIndentOptions, ) -> bool
pub fn add_attribute( &mut self, tag_names: Vec<&str>, attribute: (&str, &str), ) -> Desugarer
pub fn auto_convert_to_float(&mut self, attrs: Vec<&str>) -> Desugarer
Auto Trait Implementations§
impl Freeze for Desugarer
impl RefUnwindSafe for Desugarer
impl Send for Desugarer
impl Sync for Desugarer
impl Unpin for Desugarer
impl UnwindSafe for Desugarer
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