pub struct Style {
pub height: f64,
pub width: f64,
pub font_size: f64,
pub background_color: String,
pub text_align: String,
pub vertical_align: String,
pub text_wrap: String,
pub font_family: String,
pub font_strike: String,
pub color: String,
/* private fields */
}
Fields§
§height: f64
§width: f64
§font_size: f64
§background_color: String
§text_align: String
§vertical_align: String
垂直文本对齐
text_wrap: String
§font_family: String
字体
font_strike: String
字体的删除线样式
color: String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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