pub enum TextFitMode {
None,
Grow,
Shrink,
}Expand description
Text fitting direction.
Variants§
None
Do not scale inline contents.
Grow
Scale inline contents up to fit.
Shrink
Scale inline contents down to fit.
Trait Implementations§
Source§impl Clone for TextFitMode
impl Clone for TextFitMode
Source§fn clone(&self) -> TextFitMode
fn clone(&self) -> TextFitMode
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 TextFitMode
Source§impl Debug for TextFitMode
impl Debug for TextFitMode
Source§impl Default for TextFitMode
impl Default for TextFitMode
Source§fn default() -> TextFitMode
fn default() -> TextFitMode
Returns the “default value” for a type. Read more
impl Eq for TextFitMode
Source§impl<'i> FromCss<'i> for TextFitMode
impl<'i> FromCss<'i> for TextFitMode
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 TextFitMode
impl PartialEq for TextFitMode
Source§fn eq(&self, other: &TextFitMode) -> bool
fn eq(&self, other: &TextFitMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TextFitMode
Auto Trait Implementations§
impl Freeze for TextFitMode
impl RefUnwindSafe for TextFitMode
impl Send for TextFitMode
impl Sync for TextFitMode
impl Unpin for TextFitMode
impl UnsafeUnpin for TextFitMode
impl UnwindSafe for TextFitMode
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