Function add_properties

Source
pub fn add_properties<'ob>(
    plist: Gc<ObjectType<'ob>>,
    obj_i: Gc<ObjectType<'ob>>,
    _set_type: PropertySetType,
    _destructive: bool,
    cx: &'ob Context<'_>,
) -> Result<Gc<ObjectType<'ob>>>
Expand description

Add the properties of PLIST to the interval I, or set the value of I’s property to the value of the property on PLIST if they are different.

OBJECT should be the string or buffer the interval is in.

If DESTRUCTIVE, the function is allowed to reuse list values in the properties.

Return true if this changes I (i.e., if any members of PLIST are actually added to I’s plist)