pub fn with_factory_rc(f: Rc<RefCell<F>>) -> Self {
        let mut scope = Self {
            ns: HashMap::new(),
            default: None,
            base: None,
            factory: f,
            datatype: None,
            lang: None,
            text: None,
            li: AtomicUsize::new(1),
            collection: Vec::new(),
        };
        // These namespaces are always in scope
        scope
            .add_prefix("xml", "http://www.w3.org/XML/1998/namespace#")
            .unwrap();
        scope
            .add_prefix("xmlns", "https://www.w3.org/2000/xmlns/")
            .unwrap();
        scope
    }
/// Create a new `Scope` from a shared smartpointer to a term factory.
Create a new `Scope` from a shared smartpointer to a term factory.
Create a new ` Scope ` from a shared smartpointer to a term factory .
pub fn with_factory_rc(f: Rc<RefCell<F>>) -> Self {
        let mut scope = Self {
            ns: HashMap::new(),
            default: None,
            base: None,
            factory: f,
            datatype: None,
            lang: None,
            text: None,
            li: AtomicUsize::new(1),
            collection: Vec::new(),
        };
        // These namespaces are always in scope
        scope
            .add_prefix("xml", "http://www.w3.org/XML/1998/namespace#")
            .unwrap();
        scope
            .add_prefix("xmlns", "https://www.w3.org/2000/xmlns/")
            .unwrap();
        scope
    }
pub fn with_factory_rc ( f : Rc < RefCell < F > > ) -> Self { let mut scope = Self { ns : HashMap :: new ( ) , default : None , base : None , factory : f , datatype : None , lang : None , text : None , li : AtomicUsize :: new ( 1 ) , collection : Vec :: new ( ) , } ; // These namespaces are always in scope scope . add_prefix ( " " , " " ) . unwrap ( ) ; scope . add_prefix ( " " , " " ) . unwrap ( ) ; scope }
Create a new `Scope` from a shared smartpointer to a term factory.
Create a new ` Scope ` from a shared smartpointer to a term factory .
f
Rc<RefCell<F>>
f
Rc<RefCell<F>>