[][src]Function traitcast::implements_trait

pub fn implements_trait<From: ?Sized, To: ?Sized>(x: &From) -> bool where
    From: TraitcastFrom,
    To: 'static, 

Tests whether the given value is castable to some trait object. This will always return false if the implementation of the target trait, for the concrete type of x, has not been registered via traitcast!.