Struct style::rule_cache::RuleCacheConditions
source · pub struct RuleCacheConditions {
uncacheable: bool,
font_size: Option<NonNegativeLength>,
line_height: Option<NonNegativeLength>,
writing_mode: Option<WritingMode>,
color_scheme: Option<ColorSchemeFlags>,
}
Expand description
The conditions for caching and matching a style in the rule cache.
Fields§
§uncacheable: bool
§font_size: Option<NonNegativeLength>
§line_height: Option<NonNegativeLength>
§writing_mode: Option<WritingMode>
§color_scheme: Option<ColorSchemeFlags>
Implementations§
source§impl RuleCacheConditions
impl RuleCacheConditions
sourcepub fn set_font_size_dependency(&mut self, font_size: NonNegativeLength)
pub fn set_font_size_dependency(&mut self, font_size: NonNegativeLength)
Sets the style as depending in the font-size value.
sourcepub fn set_line_height_dependency(&mut self, line_height: NonNegativeLength)
pub fn set_line_height_dependency(&mut self, line_height: NonNegativeLength)
Sets the style as depending in the line-height value.
sourcepub fn set_color_scheme_dependency(&mut self, color_scheme: ColorSchemeFlags)
pub fn set_color_scheme_dependency(&mut self, color_scheme: ColorSchemeFlags)
Sets the style as depending in the color-scheme property value.
sourcepub fn set_uncacheable(&mut self)
pub fn set_uncacheable(&mut self)
Sets the style as uncacheable.
sourcepub fn set_writing_mode_dependency(&mut self, writing_mode: WritingMode)
pub fn set_writing_mode_dependency(&mut self, writing_mode: WritingMode)
Sets the style as depending in the writing-mode value writing_mode
.
Trait Implementations§
source§impl Clone for RuleCacheConditions
impl Clone for RuleCacheConditions
source§fn clone(&self) -> RuleCacheConditions
fn clone(&self) -> RuleCacheConditions
Returns a copy 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 RuleCacheConditions
impl Debug for RuleCacheConditions
source§impl Default for RuleCacheConditions
impl Default for RuleCacheConditions
source§fn default() -> RuleCacheConditions
fn default() -> RuleCacheConditions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RuleCacheConditions
impl RefUnwindSafe for RuleCacheConditions
impl Send for RuleCacheConditions
impl Sync for RuleCacheConditions
impl Unpin for RuleCacheConditions
impl UnwindSafe for RuleCacheConditions
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> 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