Trait core::ops::DispatchFromDyn[][src]

pub trait DispatchFromDyn<T> { }
🔬 This is a nightly-only experimental API. (dispatch_from_dyn)
Expand description

这用于对象安全,以检查是否可以分派方法的接收者类型。

trait 的示例实现:

impl<T: ?Sized, U: ?Sized> DispatchFromDyn<Rc<U>> for Rc<T>
where
    T: Unsize<U>,
{}
Run

Implementors