[−][src]Struct rsass::GlobalScope
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]
fn define_default(&mut self, name: &str, val: &Value, _global: bool)
[src]
fn define_global(&self, name: &str, val: &Value)
[src]
fn get_mixin(&self, name: &str) -> Option<(FormalArgs, Vec<Item>)>
[src]
fn get_or_none(&self, name: &str) -> Option<Value>
[src]
fn get_global_or_none(&self, name: &str) -> Option<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 get_selectors(&self) -> &Selectors
[src]
fn define_multi(&mut self, names: &[String], value: &Value)
[src]
Define multiple names from a value that is a list. Special case: in names is a single name, value is used directly. Read more
fn get(&self, name: &str) -> Result<Value, Error>
[src]
fn get_global(&self, name: &str) -> Result<Value, Error>
[src]
fn eval_body(&mut self, body: &[Item]) -> Result<Option<Value>, Error> where
Self: Sized,
[src]
Self: Sized,
Auto Trait Implementations
impl Send for GlobalScope
impl Sync for GlobalScope
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,