[][src]Struct rsass::GlobalScope

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]

pub fn new() -> Self[src]

Create a new global scope.

Trait Implementations

impl Scope for GlobalScope[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]

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]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.