Function set_prototype_of

pub fn set_prototype_of<T>(target: &Object<T>, prototype: &JsValue) -> Result<bool, JsValue>
where
    Object<T>: ErasableGenericBorrow<Object<JsValue>>,

The static Reflect.setPrototypeOf() method is the same method as Object.setPrototypeOf(). It sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or to null.

MDN documentation