pub struct StyleData {Show 24 fields
pub display: Display,
pub float: Option<Float>,
pub width: i32,
pub height: i32,
pub margin: Edge,
pub padding: Edge,
pub start_x: i32,
pub end_x: i32,
pub retain_whitespace: bool,
pub text_align: TextAlign,
pub text_indent: i32,
pub line_height: i32,
pub language: Option<String>,
pub font_kind: FontKind,
pub font_style: FontStyle,
pub font_weight: FontWeight,
pub font_size: f32,
pub font_features: Option<Vec<String>>,
pub color: Color,
pub letter_spacing: i32,
pub word_spacing: WordSpacing,
pub vertical_align: i32,
pub list_style_type: Option<ListStyleType>,
pub uri: Option<String>,
}Fields§
§display: Display§float: Option<Float>§width: i32§height: i32§margin: Edge§padding: Edge§start_x: i32§end_x: i32§retain_whitespace: bool§text_align: TextAlign§text_indent: i32§line_height: i32§language: Option<String>§font_kind: FontKind§font_style: FontStyle§font_weight: FontWeight§font_size: f32§font_features: Option<Vec<String>>§color: Color§letter_spacing: i32§word_spacing: WordSpacing§vertical_align: i32§list_style_type: Option<ListStyleType>§uri: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for StyleData
impl RefUnwindSafe for StyleData
impl Send for StyleData
impl Sync for StyleData
impl Unpin for StyleData
impl UnwindSafe for StyleData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.