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 for TextFormatting
impl PartialEq for TextFormatting
Source§impl PartialOrd for TextFormatting
impl PartialOrd for TextFormatting
impl Copy for TextFormatting
impl Eq for TextFormatting
impl StructuralPartialEq for TextFormatting
Auto Trait Implementations§
impl Freeze for TextFormatting
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