pub struct TextFit {
pub min: f32,
pub max: Option<f32>,
}Expand description
The font sizes a text is fitted between, in pixels.
Fields§
§min: f32Smallest font size; when nothing larger fits, the text draws at this size.
max: Option<f32>Largest font size. Default: the text’s font size, so it only shrinks.
Trait Implementations§
impl Copy for TextFit
Source§impl<'de> Deserialize<'de> for TextFit
impl<'de> Deserialize<'de> for TextFit
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 TextFit
Auto Trait Implementations§
impl Forget for TextFit
impl Freeze for TextFit
impl Move for TextFit
impl RefUnwindSafe for TextFit
impl Send for TextFit
impl Sync for TextFit
impl Unpin for TextFit
impl UnsafeUnpin for TextFit
impl UnwindSafe for TextFit
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