#[repr(C)]pub enum StyleTextTransform {
None = 0,
Capitalize = 1,
Uppercase = 2,
Lowercase = 3,
FullWidth = 4,
}Expand description
Controls capitalization of a text run (applied before shaping).
CSS Text Level 3 §2.1: https://www.w3.org/TR/css-text-3/#text-transform-property
Variants§
None = 0
No capitalization effect.
Capitalize = 1
Uppercase the first typographic letter unit of each word.
Uppercase = 2
Uppercase every typographic letter unit.
Lowercase = 3
Lowercase every typographic letter unit.
FullWidth = 4
Map to the full-width form where available.
Trait Implementations§
Source§impl Clone for StyleTextTransform
impl Clone for StyleTextTransform
Source§fn clone(&self) -> StyleTextTransform
fn clone(&self) -> StyleTextTransform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StyleTextTransform
Source§impl Debug for StyleTextTransform
impl Debug for StyleTextTransform
Source§impl Default for StyleTextTransform
impl Default for StyleTextTransform
Source§fn default() -> StyleTextTransform
fn default() -> StyleTextTransform
Returns the “default value” for a type. Read more
impl Eq for StyleTextTransform
Source§impl FormatAsRustCode for StyleTextTransform
impl FormatAsRustCode for StyleTextTransform
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleTextTransform> for CssProperty
impl From<StyleTextTransform> for CssProperty
Source§fn from(e: StyleTextTransform) -> Self
fn from(e: StyleTextTransform) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleTextTransform
impl Hash for StyleTextTransform
Source§impl Ord for StyleTextTransform
impl Ord for StyleTextTransform
Source§fn cmp(&self, other: &StyleTextTransform) -> Ordering
fn cmp(&self, other: &StyleTextTransform) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleTextTransform
impl PartialEq for StyleTextTransform
Source§impl PartialOrd for StyleTextTransform
impl PartialOrd for StyleTextTransform
Source§impl PrintAsCssValue for StyleTextTransform
impl PrintAsCssValue for StyleTextTransform
fn print_as_css_value(&self) -> String
impl StructuralPartialEq for StyleTextTransform
Auto Trait Implementations§
impl Freeze for StyleTextTransform
impl RefUnwindSafe for StyleTextTransform
impl Send for StyleTextTransform
impl Sync for StyleTextTransform
impl Unpin for StyleTextTransform
impl UnsafeUnpin for StyleTextTransform
impl UnwindSafe for StyleTextTransform
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