Struct rsass::GlobalScope
source · pub struct GlobalScope { /* private fields */ }
Expand description
A Scope
that can be created without allready having a scope as a
parameter is a GlobalScope
.
There can be multiple “global” scopes in the same process, they are global to the handling of a scss document.
Implementations§
source§impl GlobalScope
impl GlobalScope
Trait Implementations§
source§impl Scope for GlobalScope
impl Scope for GlobalScope
fn define_default(&mut self, name: &str, val: &Value, _global: bool)
source§fn define_global(&self, name: &str, val: &Value)
fn define_global(&self, name: &str, val: &Value)
Define a variable in the global scope that is an ultimate
parent of this scope. Read more
fn get_mixin(&self, name: &str) -> Option<(FormalArgs, Vec<Item>)>
fn get_global(&self, name: &str) -> Value
fn define_mixin(&mut self, name: &str, args: &FormalArgs, body: &[Item])
fn define_function(&mut self, name: &str, func: SassFunction)
fn get_function(&self, name: &str) -> Option<&SassFunction>
fn call_function(&self, name: &str, args: &CallArgs) -> Option<Value>
fn get_selectors(&self) -> &Selectors
source§fn define_multi(&mut self, names: &[String], value: &Value)
fn define_multi(&mut self, names: &[String], value: &Value)
Define multiple names from a value that is a list.
Special case: in names is a single name, value is used directly. Read more