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 { ... }
}
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

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.

Implementors§