[−][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<Result<Value, Error>>
[src]
&self,
name: &str,
args: &CallArgs
) -> Option<Result<Value, Error>>
fn get_selectors(&self) -> &Selectors
[src]
fn define_multi(&mut self, names: &[String], value: &Value)
[src]
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 Unpin for GlobalScope
impl Sync for GlobalScope
impl !UnwindSafe for GlobalScope
impl !RefUnwindSafe for GlobalScope
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,