Skip to main content

BundleExt

Trait BundleExt 

Source
pub trait BundleExt: Bundle + Sized {
    // Provided method
    fn with<C: Component>(self, component: C) -> DynamicBundle<Self, C> { ... }
}
Expand description

Tüm Bundle tipleri için otomatik .with(Component) zincirleme desteği.

Provided Methods§

Source

fn with<C: Component>(self, component: C) -> DynamicBundle<Self, C>

Bu bundle’ın üzerine ek bir bileşen daha ekler.

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: Bundle> BundleExt for T