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 { ... }
fn is_custom_data_attribute(&self) -> bool { ... }
}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.
Sourcefn is_custom_data_attribute(&self) -> bool
fn is_custom_data_attribute(&self) -> bool
Wrapper of [script::dom::bindings::domname::is_custom_data_attribute] for
[‘SanitizerAttribute’]. For other types such as [‘SanitizerElementWithAttributes’] and
SanitizerElement, return false by default.
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.