Enum html2md_rs::structs::NodeType
source · pub enum NodeType {
Show 30 variants
Html,
Head,
Style,
Link,
Script,
Meta,
Title,
Body,
H1,
H2,
H3,
H4,
H5,
H6,
P,
Div,
Strong,
Em,
A,
Ul,
Ol,
Li,
Pre,
Code,
Hr,
Br,
Blockquote,
Text,
Comment,
Unknown(String),
}
Expand description
Represents the different types of HTML elements that the library supports.
Variants§
Html
Head
Style
Link
Script
Meta
Title
Body
H1
H2
H3
H4
H5
H6
P
Div
Strong
Em
A
Ul
Ol
Li
Pre
Code
Hr
Br
Blockquote
Text
Comment
Unknown(String)
Implementations§
source§impl NodeType
impl NodeType
pub fn is_special_tag(&self) -> bool
pub fn from_tag_str(input: &str) -> Self
Trait Implementations§
source§impl PartialEq for NodeType
impl PartialEq for NodeType
impl Eq for NodeType
impl StructuralPartialEq for NodeType
Auto Trait Implementations§
impl Freeze for NodeType
impl RefUnwindSafe for NodeType
impl Send for NodeType
impl Sync for NodeType
impl Unpin for NodeType
impl UnwindSafe for NodeType
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