pub struct PropertyAttribute(/* private fields */);Implementations§
Source§impl PropertyAttribute
impl PropertyAttribute
Sourcepub const NONE: PropertyAttribute
pub const NONE: PropertyAttribute
No property attributes.
Sourcepub const READ_ONLY: PropertyAttribute
pub const READ_ONLY: PropertyAttribute
Not writable. Corresponds to
Object.defineProperty(o, "p", { writable: false }).
Sourcepub const DONT_ENUM: PropertyAttribute
pub const DONT_ENUM: PropertyAttribute
Not enumerable. Corresponds to
Object.defineProperty(o, "p", { enumerable: false }).
Sourcepub const DONT_DELETE: PropertyAttribute
pub const DONT_DELETE: PropertyAttribute
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§type Output = PropertyAttribute
type Output = PropertyAttribute
The resulting type after applying the
| operator.Source§fn bitor(self, _: PropertyAttribute) -> PropertyAttribute
fn bitor(self, _: PropertyAttribute) -> PropertyAttribute
Performs the
| operation. Read moreSource§impl Debug for PropertyAttribute
impl Debug for PropertyAttribute
Source§impl Default for PropertyAttribute
impl Default for PropertyAttribute
Source§fn default() -> PropertyAttribute
fn default() -> PropertyAttribute
Returns the “default value” for a type. Read more
impl Eq for PropertyAttribute
Source§impl PartialEq for PropertyAttribute
impl PartialEq 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 UnsafeUnpin 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