pub enum TextTransform {
None,
Uppercase,
Lowercase,
Capitalize,
}Expand description
CSS-like text-transform property.
Terminal backends apply this at render time by transforming the text content before measuring cell widths. Transformations are locale-independent (ASCII-only) for deterministic output.
Variants§
None
No transformation (identity).
Uppercase
Convert all characters to uppercase.
Lowercase
Convert all characters to lowercase.
Capitalize
Capitalize the first character of each word.
Implementations§
Trait Implementations§
Source§impl Clone for TextTransform
impl Clone for TextTransform
Source§fn clone(&self) -> TextTransform
fn clone(&self) -> TextTransform
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 TextTransform
impl Debug for TextTransform
Source§impl Default for TextTransform
impl Default for TextTransform
Source§fn default() -> TextTransform
fn default() -> TextTransform
Returns the “default value” for a type. Read more
Source§impl Hash for TextTransform
impl Hash for TextTransform
Source§impl PartialEq for TextTransform
impl PartialEq for TextTransform
impl Copy for TextTransform
impl Eq for TextTransform
impl StructuralPartialEq for TextTransform
Auto Trait Implementations§
impl Freeze for TextTransform
impl RefUnwindSafe for TextTransform
impl Send for TextTransform
impl Sync for TextTransform
impl Unpin for TextTransform
impl UnsafeUnpin for TextTransform
impl UnwindSafe for TextTransform
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