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 duplicate 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
Source§impl PartialEq for MarkupType
impl PartialEq for MarkupType
Source§impl Serialize for MarkupType
impl Serialize for MarkupType
impl Copy for MarkupType
impl StructuralPartialEq for MarkupType
Auto Trait Implementations§
impl Freeze for MarkupType
impl RefUnwindSafe for MarkupType
impl Send for MarkupType
impl Sync for MarkupType
impl Unpin for MarkupType
impl UnwindSafe for MarkupType
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