pub enum TextTransform {
None,
Uppercase,
Lowercase,
Capitalize,
}Expand description
Controls text case transformation when rendering.
Variants§
None
Do not transform text
Uppercase
Transform all characters to uppercase
Lowercase
Transform all characters to lowercase
Capitalize
Uppercase the first letter of each word
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 (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 TextTransform
Source§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<'i> FromCss<'i> for TextTransform
impl<'i> FromCss<'i> for TextTransform
Source§const VALID_TOKENS: &'static [CssToken]
const VALID_TOKENS: &'static [CssToken]
Returns the list of valid CSS tokens for this type.
Source§fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
Source§impl PartialEq for TextTransform
impl PartialEq for TextTransform
Source§fn eq(&self, other: &TextTransform) -> bool
fn eq(&self, other: &TextTransform) -> bool
Tests for
self and other values to be equal, and is used by ==.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