Bring back the Namespace newtype.

This commit is contained in:
Simon Sapin 2016-07-23 22:13:42 +02:00
parent fdb2071b2d
commit cf05cd934d
4 changed files with 84 additions and 21 deletions

View file

@ -30,19 +30,9 @@ use std::slice;
#[macro_use]
pub mod atom_macro;
pub mod namespace;
#[macro_export]
macro_rules! ns {
() => { atom!("") }
}
pub type Namespace = Atom;
#[allow(non_snake_case)]
#[inline]
pub fn Namespace(atom: Atom) -> Atom {
atom
}
pub use namespace::{Namespace, WeakNamespace};
/// A strong reference to a Gecko atom.
#[derive(PartialEq, Eq)]