pub struct RuleScope {
pub properties: Properties,
pub functions: Option<Rc<FunctionRegistry>>,
pub dynamic: Option<Rc<dyn VariableScope>>,
}Expand description
variables of a style rule: the custom properties declared by the rule
Fields§
§properties: Properties§functions: Option<Rc<FunctionRegistry>>§dynamic: Option<Rc<dyn VariableScope>>Implementations§
Source§impl RuleScope
impl RuleScope
pub fn new( properties: Properties, functions: Option<Rc<FunctionRegistry>>, dynamic: Option<Rc<dyn VariableScope>>, ) -> Rc<dyn VariableScope>
Trait Implementations§
Source§impl VariableScope for RuleScope
impl VariableScope for RuleScope
Source§fn arguments(&self) -> Option<Rc<dyn VariableScope>>
fn arguments(&self) -> Option<Rc<dyn VariableScope>>
the arguments see the variables of the call site
Source§fn lookup(&self, name: &str, _descendant: bool) -> Found
fn lookup(&self, name: &str, _descendant: bool) -> Found
find a variable.
descendant: the variable is referenced by a descendant of the element a mixin is applied toAuto Trait Implementations§
impl !RefUnwindSafe for RuleScope
impl !Send for RuleScope
impl !Sync for RuleScope
impl !UnwindSafe for RuleScope
impl Forget for RuleScope
impl Freeze for RuleScope
impl Move for RuleScope
impl Unpin for RuleScope
impl UnsafeUnpin for RuleScope
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