/// Add a new XML prefix to the namespace mapping.
Add a new XML prefix to the namespace mapping.
Add a new XML prefix to the namespace mapping .
pub fn add_prefix(&mut self, prefix: &str, value: &str) -> ScopeResult<()> {
        if prefix == "_" {
            Err(RdfError::InvalidPrefixBlank)
        } else {
            let mut f = self.factory.borrow_mut();
            self.ns.insert(
                String::from(prefix),
                Namespace::new(f.get_term_data(value))?,
            );
            Ok(())
        }
    }
pub fn add_prefix ( & mut self , prefix : & str , value : & str ) -> ScopeResult < ( ) > { if prefix == " " { Err ( RdfError :: InvalidPrefixBlank ) } else { let mut f = self . factory . borrow_mut ( ) ; self . ns . insert ( String :: from ( prefix ) , Namespace :: new ( f . get_term_data ( value ) ) ? , ) ; Ok ( ( ) ) } }
Add a new XML prefix to the namespace mapping.
Add a new XML prefix to the namespace mapping .
&mut self
prefix
&str
value
&str