#[repr(C)]
pub enum IntegrityLevel {
    Frozen,
    Sealed,
}
Expand description

Object integrity levels can be used to restrict what can be done to an object’s properties.

Variants

Frozen

Frozen objects are like Sealed objects, except all existing properties are also made non-writable.

Sealed

Sealed objects prevent addition of any new property on the object, makes all existing properties non-configurable, meaning they cannot be deleted, have their enumerability, configurability, or writability changed.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.