Enum wikitext_parser::TextFormatting
source · pub enum TextFormatting {
Normal,
Italic,
Bold,
ItalicBold,
}
Expand description
Format of formatted text.
Variants§
Implementations§
source§impl TextFormatting
impl TextFormatting
sourcepub fn next_formatting(&self, apostrophe_length: usize) -> Self
pub fn next_formatting(&self, apostrophe_length: usize) -> Self
Returns the new formatting to use after encountering an apostrophe run of length apostrophe_length
.
Trait Implementations§
source§impl Clone for TextFormatting
impl Clone for TextFormatting
source§fn clone(&self) -> TextFormatting
fn clone(&self) -> TextFormatting
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 TextFormatting
impl Debug for TextFormatting
source§impl Display for TextFormatting
impl Display for TextFormatting
source§impl PartialEq<TextFormatting> for TextFormatting
impl PartialEq<TextFormatting> for TextFormatting
source§fn eq(&self, other: &TextFormatting) -> bool
fn eq(&self, other: &TextFormatting) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TextFormatting> for TextFormatting
impl PartialOrd<TextFormatting> for TextFormatting
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TextFormatting
impl Eq for TextFormatting
impl StructuralEq for TextFormatting
impl StructuralPartialEq for TextFormatting
Auto Trait Implementations§
impl RefUnwindSafe for TextFormatting
impl Send for TextFormatting
impl Sync for TextFormatting
impl Unpin for TextFormatting
impl UnwindSafe for TextFormatting
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