Enum mediawiki_parser::MarkupType
source · pub enum MarkupType {
NoWiki,
Bold,
Italic,
Math,
StrikeThrough,
Underline,
Code,
Blockquote,
Preformatted,
}
Expand description
Types of markup a section of text may have.
Variants§
Implementations§
source§impl MarkupType
impl MarkupType
sourcepub fn by_tag_name(tag: &str) -> MarkupType
pub fn by_tag_name(tag: &str) -> MarkupType
Match an HTML tag name to it’s markup type.
Trait Implementations§
source§impl Clone for MarkupType
impl Clone for MarkupType
source§fn clone(&self) -> MarkupType
fn clone(&self) -> MarkupType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MarkupType
impl Debug for MarkupType
source§impl<'de> Deserialize<'de> for MarkupType
impl<'de> Deserialize<'de> for MarkupType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more