[][src]Function bracket::render::assert::assert

pub fn assert(value: &Value, kinds: &[Type]) -> (bool, Option<String>)

Assert on the type of a value.

The type of the value must be one of the given types.

If the type assertion fails the returned value contains a string of the current type that caused the failure.