pub struct TextWeight {
pub style: String,
pub weight: String,
pub size: Option<f64>,
pub tv_size: Option<f64>,
}Expand description
The weight, and the size when the application’s design gives one, of one text style.
Fields§
§style: StringA text style, such as large_title.
weight: StringOne of TEXT_WEIGHTS.
size: Option<f64>The size in points on desktops; the platform’s size of the style when absent.
tv_size: Option<f64>The size in points on a television, read from across a room, where
the design gives one; size there otherwise.
Trait Implementations§
Source§impl Clone for TextWeight
impl Clone for TextWeight
Source§impl Debug for TextWeight
impl Debug for TextWeight
Source§impl<'de> Deserialize<'de> for TextWeight
impl<'de> Deserialize<'de> for TextWeight
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 TextWeight
impl PartialEq for TextWeight
Source§impl Serialize for TextWeight
impl Serialize for TextWeight
impl StructuralPartialEq for TextWeight
Auto Trait Implementations§
impl Freeze for TextWeight
impl RefUnwindSafe for TextWeight
impl Send for TextWeight
impl Sync for TextWeight
impl Unpin for TextWeight
impl UnsafeUnpin for TextWeight
impl UnwindSafe for TextWeight
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