pub struct ExtraStyleData {
pub font_faces: LayerOrderedVec<Arc<Locked<FontFaceRule>>>,
pub font_feature_values: LayerOrderedVec<Arc<FontFeatureValuesRule>>,
pub font_palette_values: LayerOrderedVec<Arc<FontPaletteValuesRule>>,
pub counter_styles: LayerOrderedMap<Arc<Locked<CounterStyleRule>>>,
pub position_try_rules: LayerOrderedMap<Arc<Locked<PositionTryRule>>>,
pub pages: PageRuleMap,
}Expand description
This struct holds data which users of Stylist may want to extract from stylesheets which can be done at the same time as updating.
Fields§
§font_faces: LayerOrderedVec<Arc<Locked<FontFaceRule>>>A list of effective font-face rules and their origin.
font_feature_values: LayerOrderedVec<Arc<FontFeatureValuesRule>>A list of effective font-feature-values rules.
font_palette_values: LayerOrderedVec<Arc<FontPaletteValuesRule>>A list of effective font-palette-values rules.
counter_styles: LayerOrderedMap<Arc<Locked<CounterStyleRule>>>A map of effective counter-style rules.
position_try_rules: LayerOrderedMap<Arc<Locked<PositionTryRule>>>A map of effective @position-try rules.
pages: PageRuleMapA map of effective page rules.
Trait Implementations§
Source§impl Clone for ExtraStyleData
impl Clone for ExtraStyleData
Source§fn clone(&self) -> ExtraStyleData
fn clone(&self) -> ExtraStyleData
Returns a duplicate of the value. Read more
1.0.0 · 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 ExtraStyleData
impl Debug for ExtraStyleData
Source§impl Default for ExtraStyleData
impl Default for ExtraStyleData
Source§fn default() -> ExtraStyleData
fn default() -> ExtraStyleData
Returns the “default value” for a type. Read more
Source§impl MallocSizeOf for ExtraStyleData
impl MallocSizeOf for ExtraStyleData
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure heap usage.
Auto Trait Implementations§
impl Freeze for ExtraStyleData
impl !RefUnwindSafe for ExtraStyleData
impl Send for ExtraStyleData
impl Sync for ExtraStyleData
impl Unpin for ExtraStyleData
impl !UnwindSafe for ExtraStyleData
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert