Skip to main content

NameMember

Trait NameMember 

Source
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§

Source

fn name(&self) -> &DOMString

Source

fn name_mut(&mut self) -> &mut DOMString

Source

fn namespace(&self) -> Option<&DOMString>

Source

fn namespace_mut(&mut self) -> Option<&mut DOMString>

Source

fn set_namespace(&mut self, namespace: Option<&str>)

Provided Methods§

Source

fn is_less_than_item(&self, item_b: &Self) -> bool

Source

fn compare(&self, other: &Self) -> Ordering

Source

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".

Implementors§