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§
fn new_dictionary(name: DOMString, namespace: Option<DOMString>) -> Self
fn is_string(&self) -> bool
fn is_dictionary(&self) -> bool
Provided Methods§
Sourcefn canonicalize_name(self, default_namespace: Option<String>) -> Self
fn canonicalize_name(self, default_namespace: Option<String>) -> Self
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.