pub struct StyleCascade {
pub defaults: Style,
pub theme: Style,
pub template: Style,
pub component: Style,
pub data_rule: Style,
pub runtime: Style,
pub export: Style,
}Expand description
Named layers for the normative style cascade.
Fields§
§defaults: StyleEngine defaults.
theme: StyleActive theme.
template: StyleTemplate-level style.
component: StyleComponent layer.
data_rule: StyleData-rule layer.
runtime: StyleRuntime override layer.
export: StyleExport-specific override layer.
Implementations§
Source§impl StyleCascade
impl StyleCascade
Sourcepub fn compute(&self) -> Result<ComputedStyle>
pub fn compute(&self) -> Result<ComputedStyle>
Computes defaults → theme → template → component → data → runtime → export.
Trait Implementations§
Source§impl Clone for StyleCascade
impl Clone for StyleCascade
Source§fn clone(&self) -> StyleCascade
fn clone(&self) -> StyleCascade
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StyleCascade
impl Debug for StyleCascade
Source§impl Default for StyleCascade
impl Default for StyleCascade
Source§fn default() -> StyleCascade
fn default() -> StyleCascade
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StyleCascade
impl RefUnwindSafe for StyleCascade
impl Send for StyleCascade
impl Sync for StyleCascade
impl Unpin for StyleCascade
impl UnsafeUnpin for StyleCascade
impl UnwindSafe for StyleCascade
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,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.