pub unsafe trait Typecheck { }
Expand description
This trait is used in combination with Value::is
and DataType::is
to check if that
property holds true.
Safety: If this trait is implemented for some type which also implements Unbox
, the trait
method typecheck
must only return true
if it’s guaranteed that Unbox::unbox
can safely
be called for values whose type is that method’s argument.