Skip to main content

ElementStyleInfo

Struct ElementStyleInfo 

Source
pub struct ElementStyleInfo {
Show 45 fields pub margin: Edges, pub padding: Edges, pub border_width: Edges, pub width: Option<String>, pub height: Option<String>, pub min_width: Option<f64>, pub min_height: Option<f64>, pub max_width: Option<f64>, pub max_height: Option<f64>, pub flex_direction: FlexDirection, pub justify_content: JustifyContent, pub align_items: AlignItems, pub align_self: Option<AlignItems>, pub flex_wrap: FlexWrap, pub align_content: AlignContent, pub flex_grow: f64, pub flex_shrink: f64, pub flex_basis: Option<String>, pub gap: f64, pub row_gap: f64, pub column_gap: f64, pub font_family: String, pub font_size: f64, pub font_weight: u32, pub font_style: FontStyle, pub line_height: f64, pub text_align: TextAlign, pub letter_spacing: f64, pub text_decoration: TextDecoration, pub text_transform: TextTransform, pub color: Color, pub background_color: Option<Color>, pub border_color: EdgeValues<Color>, pub border_radius: CornerValues, pub opacity: f64, pub position: Position, pub top: Option<f64>, pub right: Option<f64>, pub bottom: Option<f64>, pub left: Option<f64>, pub overflow: Overflow, pub breakable: bool, pub break_before: bool, pub min_widow_lines: u32, pub min_orphan_lines: u32,
}
Expand description

Serializable snapshot of ResolvedStyle for the inspector panel.

Fields§

§margin: Edges§padding: Edges§border_width: Edges§width: Option<String>§height: Option<String>§min_width: Option<f64>§min_height: Option<f64>§max_width: Option<f64>§max_height: Option<f64>§flex_direction: FlexDirection§justify_content: JustifyContent§align_items: AlignItems§align_self: Option<AlignItems>§flex_wrap: FlexWrap§align_content: AlignContent§flex_grow: f64§flex_shrink: f64§flex_basis: Option<String>§gap: f64§row_gap: f64§column_gap: f64§font_family: String§font_size: f64§font_weight: u32§font_style: FontStyle§line_height: f64§text_align: TextAlign§letter_spacing: f64§text_decoration: TextDecoration§text_transform: TextTransform§color: Color§background_color: Option<Color>§border_color: EdgeValues<Color>§border_radius: CornerValues§opacity: f64§position: Position§top: Option<f64>§right: Option<f64>§bottom: Option<f64>§left: Option<f64>§overflow: Overflow§breakable: bool§break_before: bool§min_widow_lines: u32§min_orphan_lines: u32

Trait Implementations§

Source§

impl Clone for ElementStyleInfo

Source§

fn clone(&self) -> ElementStyleInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ElementStyleInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ElementStyleInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Serialize for ElementStyleInfo

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V