mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Bring back the Namespace newtype.
This commit is contained in:
parent
fdb2071b2d
commit
cf05cd934d
4 changed files with 84 additions and 21 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue