Trait ExtendPromiseType

Source
pub trait ExtendPromiseType<'a> {
    // Required method
    fn new(ty: ReturnType<'a>) -> Self;
}
Expand description

Extension methods for PromiseType

Required Methods§

Source

fn new(ty: ReturnType<'a>) -> Self

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<'a> ExtendPromiseType<'a> for PromiseType<'a>

Source§

fn new(ty: ReturnType<'a>) -> Self

Implementors§