CustomElementMetadata

Trait CustomElementMetadata 

Source
pub trait CustomElementMetadata {
    const CUSTOM_ELEMENT_NAME: &'static str;
    const STATICS: &'static [&'static str] = _;
    const TYPE_NAME: &'static str = _;

    // Provided method
    fn struct_name() -> &'static str { ... }
}

Required Associated Constants§

Provided Associated Constants§

Source

const STATICS: &'static [&'static str] = _

Source

const TYPE_NAME: &'static str = _

Provided Methods§

Source

fn struct_name() -> &'static str

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§

Source§

impl CustomElementMetadata for CopyDropDownMenuElement

Source§

const CUSTOM_ELEMENT_NAME: &'static str = "perspective-copy-menu"

Source§

impl CustomElementMetadata for PerspectiveDebugPluginElement

Source§

const CUSTOM_ELEMENT_NAME: &'static str = "perspective-viewer-plugin"

Source§

impl CustomElementMetadata for ExportDropDownMenuElement

Source§

const CUSTOM_ELEMENT_NAME: &'static str = "perspective-export-menu"

Source§

impl CustomElementMetadata for PerspectiveViewerElement

Source§

const CUSTOM_ELEMENT_NAME: &'static str = "perspective-viewer"

Source§

const STATICS: &'static [&'static str]