[][src]Trait safecast::Match

pub trait Match: Sized {
    pub fn matches<T: TryCastFrom<Self>>(&self) -> bool { ... }
}

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

Provided methods

pub fn matches<T: TryCastFrom<Self>>(&self) -> bool[src]

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

Loading content...

Implementors

impl<F> Match for F[src]

Loading content...