Factor the name-related fields of Attr into a struct and move it to style.

This commit is contained in:
Bobby Holley 2015-11-03 12:16:53 -08:00
parent 488c1291d4
commit c9704992a9
3 changed files with 31 additions and 23 deletions

View file

@ -168,3 +168,11 @@ impl Deref for AttrValue {
}
}
}
#[derive(Clone, HeapSizeOf, Debug)]
pub struct AttrIdentifier {
pub local_name: Atom,
pub name: Atom,
pub namespace: Namespace,
pub prefix: Option<Atom>,
}