pub struct Attributes {
pub map: BTreeMap<ExpandedName, Attribute>,
}
Expand description
Convenience wrapper around a btreemap that adds method for attributes in the null namespace.
Fields§
§map: BTreeMap<ExpandedName, Attribute>
A map of attributes whose name can have namespaces.
Implementations§
source§impl Attributes
impl Attributes
sourcepub fn get_mut<A: Into<LocalName>>(
&mut self,
local_name: A,
) -> Option<&mut String>
pub fn get_mut<A: Into<LocalName>>( &mut self, local_name: A, ) -> Option<&mut String>
Like BTreeMap::get_mut
sourcepub fn entry<A: Into<LocalName>>(
&mut self,
local_name: A,
) -> Entry<'_, ExpandedName, Attribute>
pub fn entry<A: Into<LocalName>>( &mut self, local_name: A, ) -> Entry<'_, ExpandedName, Attribute>
Like BTreeMap::entry
Trait Implementations§
source§impl Clone for Attributes
impl Clone for Attributes
source§fn clone(&self) -> Attributes
fn clone(&self) -> Attributes
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Attributes
impl Debug for Attributes
source§impl PartialEq for Attributes
impl PartialEq for Attributes
impl StructuralPartialEq for Attributes
Auto Trait Implementations§
impl Freeze for Attributes
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)