pub struct PropertyAttribute(/* private fields */);Implementations§
Source§impl PropertyAttribute
impl PropertyAttribute
Sourcepub const READ_ONLY: Self
pub const READ_ONLY: Self
Not writable. Corresponds to
Object.defineProperty(o, "p", { writable: false }).
Sourcepub const DONT_ENUM: Self
pub const DONT_ENUM: Self
Not enumerable. Corresponds to
Object.defineProperty(o, "p", { enumerable: false }).
Sourcepub const DONT_DELETE: Self
pub const DONT_DELETE: Self
Not configurable. Corresponds to
Object.defineProperty(o, "p", { configurable: false }).
Sourcepub fn is_read_only(&self) -> bool
pub fn is_read_only(&self) -> bool
Test if the read-only property attribute is set.
Sourcepub fn is_dont_enum(&self) -> bool
pub fn is_dont_enum(&self) -> bool
Test if the non-enumerable property attribute is set.
Sourcepub fn is_dont_delete(&self) -> bool
pub fn is_dont_delete(&self) -> bool
Test if the non-configurable property attribute is set.
pub fn as_u32(&self) -> u32
Trait Implementations§
Source§impl BitOr for PropertyAttribute
impl BitOr for PropertyAttribute
Source§impl Debug for PropertyAttribute
impl Debug for PropertyAttribute
Source§impl Default for PropertyAttribute
impl Default for PropertyAttribute
Source§impl PartialEq for PropertyAttribute
impl PartialEq for PropertyAttribute
impl Eq for PropertyAttribute
impl StructuralPartialEq for PropertyAttribute
Auto Trait Implementations§
impl Freeze for PropertyAttribute
impl RefUnwindSafe for PropertyAttribute
impl Send for PropertyAttribute
impl Sync for PropertyAttribute
impl Unpin for PropertyAttribute
impl UnwindSafe for PropertyAttribute
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