Enum v8::IntegrityLevel
source · [−]#[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
Auto Trait Implementations
impl RefUnwindSafe for IntegrityLevel
impl Send for IntegrityLevel
impl Sync for IntegrityLevel
impl Unpin for IntegrityLevel
impl UnwindSafe for IntegrityLevel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more