/// Create a new subscope of a given parent with selectors.
Create a new subscope of a given parent with selectors.
Create a new subscope of a given parent with selectors .
pub fn sub_selectors(parent: ScopeRef, selectors: Selectors) -> Self {
        let format = parent.get_format();
        Scope {
            parent: Some(parent),
            modules: Mutex::new(BTreeMap::new()),
            variables: Mutex::new(BTreeMap::new()),
            mixins: Mutex::new(BTreeMap::new()),
            functions: Mutex::new(BTreeMap::new()),
            selectors: Some(selectors),
            forward: Default::default(),
            format,
        }
    }
pub fn sub_selectors ( parent : ScopeRef , selectors : Selectors ) -> Self { let format = parent . get_format ( ) ; Scope { parent : Some ( parent ) , modules : Mutex :: new ( BTreeMap :: new ( ) ) , variables : Mutex :: new ( BTreeMap :: new ( ) ) , mixins : Mutex :: new ( BTreeMap :: new ( ) ) , functions : Mutex :: new ( BTreeMap :: new ( ) ) , selectors : Some ( selectors ) , forward : Default :: default ( ) , format , } }
Create a new subscope of a given parent with selectors.
Create a new subscope of a given parent with selectors .
parent
ScopeRef
selectors
Selectors