Struct rsass::GlobalScope
[−]
[src]
pub struct GlobalScope { /* fields omitted */ }
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.
Methods
impl GlobalScope
[src]
Trait Implementations
impl Scope for GlobalScope
[src]
fn define(&mut self, name: &str, val: &Value)
[src]
Define a variable with a value. Read more
fn define_default(&mut self, name: &str, val: &Value, _global: bool)
[src]
fn define_global(&self, name: &str, val: &Value)
[src]
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>)>
[src]
fn get(&self, name: &str) -> Value
[src]
Get the Value for a variable.
fn get_global(&self, name: &str) -> Value
[src]
fn define_mixin(&mut self, name: &str, args: &FormalArgs, body: &[Item])
[src]
fn define_function(&mut self, name: &str, func: SassFunction)
[src]
fn get_function(&self, name: &str) -> Option<&SassFunction>
[src]
fn call_function(&self, name: &str, args: &CallArgs) -> Option<Value>
[src]
fn eval_body(&mut self, body: &[Item]) -> Option<Value> where
Self: Sized,
[src]
Self: Sized,