NameCanonicalization

Trait NameCanonicalization 

Source
trait NameCanonicalization: NameMember {
    // Required methods
    fn new_dictionary(name: DOMString, namespace: Option<DOMString>) -> Self;
    fn is_string(&self) -> bool;
    fn is_dictionary(&self) -> bool;

    // Provided method
    fn canonicalize_name(self, default_namespace: Option<String>) -> Self { ... }
}

Required Methods§

Source

fn new_dictionary(name: DOMString, namespace: Option<DOMString>) -> Self

Source

fn is_string(&self) -> bool

Source

fn is_dictionary(&self) -> bool

Provided Methods§

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§