Skip to main content

instance_of

Function instance_of 

Source
pub fn instance_of<'a>(
    v: Value,
    class_id: u32,
    want: &str,
) -> RtResult<&'a InstanceObj>
Expand description

The instance behind v if it is of class class_id exactly (builtin and prelude classes, which have no subclasses), or a TypeError panic naming want.