pub struct HtmlDocument { /* private fields */ }Expand description
Sanitized native HTML document compiled into renderable HtmlBlock items without JS or WebView.
Implementations§
Source§impl HtmlDocument
Sample rich HTML5 document builder for HtmlDocument.
impl HtmlDocument
Sample rich HTML5 document builder for HtmlDocument.
Sourcepub fn sample_html() -> Self
pub fn sample_html() -> Self
Builds and parses a rich sanitized HTML5 article demonstrating headings, quotes, code, lists, and links.
§Returns
Self- ParsedHtmlDocument.
Source§impl HtmlDocument
impl HtmlDocument
pub fn get_title(&self) -> &String
pub fn get_mut_title(&mut self) -> &mut String
pub fn set_title(&mut self, val: String) -> &mut Self
pub fn get_raw_html(&self) -> &String
pub fn get_mut_raw_html(&mut self) -> &mut String
pub fn set_raw_html(&mut self, val: String) -> &mut Self
pub fn get_blocks(&self) -> &Vec<HtmlBlock>
pub fn get_mut_blocks(&mut self) -> &mut Vec<HtmlBlock>
pub fn set_blocks(&mut self, val: Vec<HtmlBlock>) -> &mut Self
pub fn get_links_count(&self) -> usize
pub fn get_mut_links_count(&mut self) -> &mut usize
pub fn set_links_count(&mut self, val: usize) -> &mut Self
Trait Implementations§
Source§impl Clone for HtmlDocument
impl Clone for HtmlDocument
Source§impl Debug for HtmlDocument
impl Debug for HtmlDocument
Source§impl Default for HtmlDocument
impl Default for HtmlDocument
Source§impl PartialEq for HtmlDocument
impl PartialEq for HtmlDocument
impl StructuralPartialEq for HtmlDocument
Auto Trait Implementations§
impl Forget for HtmlDocument
impl Freeze for HtmlDocument
impl Move for HtmlDocument
impl RefUnwindSafe for HtmlDocument
impl Send for HtmlDocument
impl Sync for HtmlDocument
impl Unpin for HtmlDocument
impl UnsafeUnpin for HtmlDocument
impl UnwindSafe for HtmlDocument
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