pub struct PropertyHandlerContext<'a> {
pub arena: &'a Arena,
pub targets: Targets,
pub is_important: bool,
pub supports: Vec<SupportsEntry>,
pub ltr: Vec<Property>,
pub rtl: Vec<Property>,
pub dark: Vec<Property>,
pub context: DeclarationContext,
pub unused_symbols: &'a ArrayHashMap<Box<[u8]>, ()>,
}Fields§
§arena: &'a Arena§targets: Targets§is_important: bool§supports: Vec<SupportsEntry>§ltr: Vec<Property>§rtl: Vec<Property>§dark: Vec<Property>§context: DeclarationContext§unused_symbols: &'a ArrayHashMap<Box<[u8]>, ()>Implementations§
Source§impl<'a> PropertyHandlerContext<'a>
impl<'a> PropertyHandlerContext<'a>
pub fn new( arena: &'a Bump, targets: &Targets, unused_symbols: &'a ArrayHashMap<Box<[u8]>, ()>, ) -> PropertyHandlerContext<'a>
pub fn child(&self, context: DeclarationContext) -> PropertyHandlerContext<'a>
pub fn add_dark_rule(&mut self, property: Property)
pub fn add_logical_rule(&mut self, ltr: Property, rtl: Property)
pub fn should_compile_logical(&self, feature: Feature) -> bool
Source§impl<'a> PropertyHandlerContext<'a>
impl<'a> PropertyHandlerContext<'a>
pub fn get_supports_rules<T>( &self, style_rule: &StyleRule<T>, ) -> Vec<CssRule<T>>
pub fn get_additional_rules<T>( &self, style_rule: &StyleRule<T>, ) -> Vec<CssRule<T>>
pub fn get_additional_rules_helper<T>( &self, dir: Direction, decls: &[Property], sty: &StyleRule<T>, dest: &mut Vec<CssRule<T>>, )
Source§impl<'a> PropertyHandlerContext<'a>
impl<'a> PropertyHandlerContext<'a>
Source§impl<'a> PropertyHandlerContext<'a>
impl<'a> PropertyHandlerContext<'a>
pub fn add_conditional_property( &mut self, condition: SupportsCondition, property: Property, )
pub fn add_unparsed_fallbacks( &mut self, bump: &Arena, unparsed: &mut UnparsedProperty, )
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PropertyHandlerContext<'a>
impl<'a> !Send for PropertyHandlerContext<'a>
impl<'a> !Sync for PropertyHandlerContext<'a>
impl<'a> !UnwindSafe for PropertyHandlerContext<'a>
impl<'a> Freeze for PropertyHandlerContext<'a>
impl<'a> Unpin for PropertyHandlerContext<'a>
impl<'a> UnsafeUnpin for PropertyHandlerContext<'a>
Blanket Implementations§
Source§impl<T> AsCtxPtr for Twhere
T: ?Sized,
impl<T> AsCtxPtr for Twhere
T: ?Sized,
Source§fn as_ctx_ptr(&self) -> *mut Selfwhere
Self: Sized,
fn as_ctx_ptr(&self) -> *mut Selfwhere
Self: Sized,
self’s address as *mut Self for deferred-task / scopeguard /
ref_guard ctx slots. The closures/trampolines deref it as shared
(&*p) — every method they reach is &self post-R-2, so no write
provenance is required; the *mut spelling is purely to match the
existing DerefOnDrop / HasAutoFlush / RefCount ABI.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