PTypeDowncastExt

Trait PTypeDowncastExt 

Source
pub trait PTypeDowncastExt: PTypeDowncast {
    // Provided method
    fn downcast<T: NativePType>(self) -> Self::Output<T>
       where Self: Sized { ... }
}
Expand description

Extension trait to provide generic downcasting for PTypeDowncast.

Provided Methods§

Source

fn downcast<T: NativePType>(self) -> Self::Output<T>
where Self: Sized,

Downcast the object to a specific primitive type.

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§