[][src]Function types::ty_cond

pub fn ty_cond<T: ?Sized + Any, R: ?Sized + Any>(_s: &T, _r: &R) -> bool

Condition type between two values.

  assert_eq!(types::ty_cond(&0, &1), true); // true
  assert_ne!(types::ty_cond(&0, &String::default()), true); // true