Trait safecast::Match

source ·
pub trait Match: Sized {
    // Provided method
    fn matches<T: TryCastFrom<Self>>(&self) -> bool { ... }
}
Expand description

Blanket implementation of a convenience method matches which allows calling can_cast_from with a type parameter. Do not implement this trait.

Provided Methods§

source

fn matches<T: TryCastFrom<Self>>(&self) -> bool

Returns true if self can be cast into the target type T.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<F> Match for F