pub trait RenderFeatureSubmitPacketAsConcrete<'a> {
// Required method
fn as_concrete<T: RenderFeatureSubmitPacket>(&'a self) -> &'a T;
}Expand description
Provides as_concrete method to downcast as a concrete type.
Required Methods§
Sourcefn as_concrete<T: RenderFeatureSubmitPacket>(&'a self) -> &'a T
fn as_concrete<T: RenderFeatureSubmitPacket>(&'a self) -> &'a T
Downcast &dyn RenderFeatureSubmitPacket into &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.