Skip to main content

InSlotExt

Trait InSlotExt 

Source
pub trait InSlotExt: Render + Sized {
    // Provided method
    fn in_slot(self, slot_name: &str) -> Slotted<Self> { ... }
}
Expand description

Extension trait for assigning children to a named slot.

Provided Methods§

Source

fn in_slot(self, slot_name: &str) -> Slotted<Self>

Tags the rendered value for named_slot(slot_name).

Slot names are opaque strings. Duplicate names are concatenated in render order.

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<T> InSlotExt for T
where T: Render,