pub enum TextFormat {
Original,
Upper,
Lower,
Title,
LeadingWhitespace(usize),
TrailingWhitespace(usize),
ExtraSpaces,
Trimmed,
NonBreakingSpaces,
}Expand description
Text format variations.
Variants§
Original
Original text.
Upper
Uppercase.
Lower
Lowercase.
Title
Title case.
LeadingWhitespace(usize)
With leading whitespace.
TrailingWhitespace(usize)
With trailing whitespace.
ExtraSpaces
With extra internal spaces.
Trimmed
Trimmed.
NonBreakingSpaces
With non-breaking spaces.
Implementations§
Trait Implementations§
Source§impl Clone for TextFormat
impl Clone for TextFormat
Source§fn clone(&self) -> TextFormat
fn clone(&self) -> TextFormat
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 moreAuto Trait Implementations§
impl Freeze for TextFormat
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnwindSafe for TextFormat
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