Trait RenderFeatureSubmitPacketIntoConcrete

Source
pub trait RenderFeatureSubmitPacketIntoConcrete {
    // Required method
    fn into_concrete<T: RenderFeatureSubmitPacket>(self) -> Box<T>;
}
Expand description

Provides into_concrete method to downcast into a concrete type.

Required Methods§

Source

fn into_concrete<T: RenderFeatureSubmitPacket>(self) -> Box<T>

Downcast Box<dyn RenderFeatureSubmitPacket> into Box<T> where T: RenderFeatureSubmitPacket.

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.

Implementations on Foreign Types§

Source§

impl RenderFeatureSubmitPacketIntoConcrete for Box<dyn RenderFeatureSubmitPacket>

Implementors§