pub unsafe extern "C" fn yyjson_mut_obj_rotate(
obj: *mut yyjson_mut_val,
idx: usize,
) -> boolExpand description
Rotates key-value pairs in the object for the given number of times.
For example: {"a":1,"b":2,"c":3,"d":4} rotate 1 is
{"b":2,"c":3,"d":4,"a":1}.
@param obj The object to be rotated.
@param idx Index (or times) to rotate.
@return Whether successful.
@warning This function takes a linear search time.