Trait HeaderObjTraitBoxExt

Source
pub trait HeaderObjTraitBoxExt: Sized {
    // Required method
    fn downcast<H>(self) -> Result<Box<Header<H>>, Self>
       where H: HeaderKind;
}

Required Methods§

Source

fn downcast<H>(self) -> Result<Box<Header<H>>, Self>
where H: HeaderKind,

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 HeaderObjTraitBoxExt for Box<dyn HeaderObjTrait>

Source§

fn downcast<H>(self) -> Result<Box<Header<H>>, Self>
where H: HeaderKind,

Implementors§