Struct v8::PropertyAttribute 
source · #[repr(C)]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
source§fn eq(&self, other: &PropertyAttribute) -> bool
 
fn eq(&self, other: &PropertyAttribute) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.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