trait NameMember: Sized {
// Required methods
fn name(&self) -> &DOMString;
fn name_mut(&mut self) -> &mut DOMString;
fn namespace(&self) -> Option<&DOMString>;
fn namespace_mut(&mut self) -> Option<&mut DOMString>;
fn set_namespace(&mut self, namespace: Option<&str>);
// Provided methods
fn is_less_than_item(&self, item_b: &Self) -> bool { ... }
fn compare(&self, other: &Self) -> Ordering { ... }
}Expand description
Helper functions for accessing the “name” and “namespace” members of
SanitizerElementWithAttributes, SanitizerElement and SanitizerAttribute.
Required Methods§
fn name(&self) -> &DOMString
fn name_mut(&mut self) -> &mut DOMString
fn namespace(&self) -> Option<&DOMString>
fn namespace_mut(&mut self) -> Option<&mut DOMString>
fn set_namespace(&mut self, namespace: Option<&str>)
Provided Methods§
fn is_less_than_item(&self, item_b: &Self) -> bool
Sourcefn compare(&self, other: &Self) -> Ordering
fn compare(&self, other: &Self) -> Ordering
Wrapper of NameMember::is_less_than_item that returns std::cmp::Ordering.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.