Function script::dom::bindings::conversions::private_from_proto_check_static

source ยท
unsafe fn private_from_proto_check_static(
    obj: *mut JSObject,
    proto_check: fn(_: &'static DOMClass) -> bool,
) -> Result<*const c_void, ()>
Expand description

Get a *const libc::c_void for the given DOM object, unless it is a DOM wrapper, and checking if the object is of the correct type.

Returns Err(()) if obj is a wrapper or if the object is not an object for a DOM object of the given type (as defined by the proto_id and proto_depth).