Trait ISlotable

Source
pub trait ISlotable: ReferenceType {
    // Provided method
    fn assigned_slot(&self) -> Option<SlotElement> { ... }
}
Expand description

The Slotable mixin defines features that allow nodes to become the contents of a <slot> element — the following features are included in both Element and Text.

(JavaScript docs)

Provided Methods§

Source

fn assigned_slot(&self) -> Option<SlotElement>

returns a SlotElement representing the <slot> element the node is inserted in.

(JavaScript docs)

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§