pub struct LayoutFontSizeFit {
pub min: LayoutSize,
pub max: Option<LayoutSize>,
}Expand description
The font sizes a layout text is fitted between, as a text style’s
crate::FontSizeFit, in layout sizes. A min above max wins.
Fields§
§min: LayoutSizeSmallest font size, positive and at most MAX_LAYOUT_FONT_SIZE of the shorter side.
max: Option<LayoutSize>Largest font size, with the same limits. None is font_size, so the text only shrinks.
Trait Implementations§
Source§impl Clone for LayoutFontSizeFit
impl Clone for LayoutFontSizeFit
impl Copy for LayoutFontSizeFit
Source§impl Debug for LayoutFontSizeFit
impl Debug for LayoutFontSizeFit
Source§impl<'de> Deserialize<'de> for LayoutFontSizeFit
impl<'de> Deserialize<'de> for LayoutFontSizeFit
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
Source§impl PartialEq for LayoutFontSizeFit
impl PartialEq for LayoutFontSizeFit
Source§impl Serialize for LayoutFontSizeFit
impl Serialize for LayoutFontSizeFit
impl StructuralPartialEq for LayoutFontSizeFit
Auto Trait Implementations§
impl Forget for LayoutFontSizeFit
impl Freeze for LayoutFontSizeFit
impl Move for LayoutFontSizeFit
impl RefUnwindSafe for LayoutFontSizeFit
impl Send for LayoutFontSizeFit
impl Sync for LayoutFontSizeFit
impl Unpin for LayoutFontSizeFit
impl UnsafeUnpin for LayoutFontSizeFit
impl UnwindSafe for LayoutFontSizeFit
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