pub enum AutoFit {
None,
Shrink {
font_scale: f64,
line_reduction: f64,
},
Shape,
}Variants§
None
Do not autofit.
Shrink
Shrink text on overflow: font scale and line-spacing reduction (0–1).
Shape
Resize shape to fit text.
Trait Implementations§
impl Copy for AutoFit
Source§impl<'de> Deserialize<'de> for AutoFit
impl<'de> Deserialize<'de> for AutoFit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AutoFit
Auto Trait Implementations§
impl Freeze for AutoFit
impl RefUnwindSafe for AutoFit
impl Send for AutoFit
impl Sync for AutoFit
impl Unpin for AutoFit
impl UnsafeUnpin for AutoFit
impl UnwindSafe for AutoFit
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