pub enum IntegrityLevel {
Sealed,
Frozen,
}Expand description
Object integrity level.
Variants§
Sealed
Sealed object integrity level.
Preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable.
Frozen
Frozen object integrity level
A frozen object can no longer be changed; freezing an object prevents new properties from being added to it, existing properties from being removed, prevents changing the enumerability, configurability, or writability of existing properties, and prevents the values of existing properties from being changed. In addition, freezing an object also prevents its prototype from being changed.
Implementations§
Trait Implementations§
Source§impl Clone for IntegrityLevel
impl Clone for IntegrityLevel
Source§fn clone(&self) -> IntegrityLevel
fn clone(&self) -> IntegrityLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntegrityLevel
impl Debug for IntegrityLevel
Source§impl PartialEq for IntegrityLevel
impl PartialEq for IntegrityLevel
impl Copy for IntegrityLevel
impl Eq for IntegrityLevel
impl StructuralPartialEq for IntegrityLevel
Auto Trait Implementations§
impl Freeze for IntegrityLevel
impl RefUnwindSafe for IntegrityLevel
impl Send for IntegrityLevel
impl Sync for IntegrityLevel
impl Unpin for IntegrityLevel
impl UnwindSafe for IntegrityLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.