PropertyDescriptor

Struct PropertyDescriptor 

Source
#[repr(C)]
pub struct PropertyDescriptor { pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>, pub getter_: *mut JSObject, pub setter_: *mut JSObject, pub value_: Value, }
Expand description

A structure that represents a property on an object, or the absence of a property. Use {,Mutable}Handle to interact with instances of this structure rather than interacting directly with member fields.

Fields§

§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>§getter_: *mut JSObject§setter_: *mut JSObject§value_: Value

Implementations§

Source§

impl PropertyDescriptor

Source

pub fn hasConfigurable_(&self) -> bool

Source

pub fn set_hasConfigurable_(&mut self, val: bool)

Source

pub unsafe fn hasConfigurable__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_hasConfigurable__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn configurable_(&self) -> bool

Source

pub fn set_configurable_(&mut self, val: bool)

Source

pub unsafe fn configurable__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_configurable__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn hasEnumerable_(&self) -> bool

Source

pub fn set_hasEnumerable_(&mut self, val: bool)

Source

pub unsafe fn hasEnumerable__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_hasEnumerable__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn enumerable_(&self) -> bool

Source

pub fn set_enumerable_(&mut self, val: bool)

Source

pub unsafe fn enumerable__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_enumerable__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn hasWritable_(&self) -> bool

Source

pub fn set_hasWritable_(&mut self, val: bool)

Source

pub unsafe fn hasWritable__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_hasWritable__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn writable_(&self) -> bool

Source

pub fn set_writable_(&mut self, val: bool)

Source

pub unsafe fn writable__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_writable__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn hasValue_(&self) -> bool

Source

pub fn set_hasValue_(&mut self, val: bool)

Source

pub unsafe fn hasValue__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_hasValue__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn hasGetter_(&self) -> bool

Source

pub fn set_hasGetter_(&mut self, val: bool)

Source

pub unsafe fn hasGetter__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_hasGetter__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn hasSetter_(&self) -> bool

Source

pub fn set_hasSetter_(&mut self, val: bool)

Source

pub unsafe fn hasSetter__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_hasSetter__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn resolving_(&self) -> bool

Source

pub fn set_resolving_(&mut self, val: bool)

Source

pub unsafe fn resolving__raw(this: *const PropertyDescriptor) -> bool

Source

pub unsafe fn set_resolving__raw(this: *mut PropertyDescriptor, val: bool)

Source

pub fn new_bitfield_1( hasConfigurable_: bool, configurable_: bool, hasEnumerable_: bool, enumerable_: bool, hasWritable_: bool, writable_: bool, hasValue_: bool, hasGetter_: bool, hasSetter_: bool, resolving_: bool, ) -> __BindgenBitfieldUnit<[u8; 2]>

Trait Implementations§

Source§

impl Clone for PropertyDescriptor

Source§

fn clone(&self) -> PropertyDescriptor

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PropertyDescriptor

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for PropertyDescriptor

Source§

fn default() -> PropertyDescriptor

Returns the “default value” for a type. Read more
Source§

impl GCMethods for PropertyDescriptor

Source§

unsafe fn post_barrier( _: *mut PropertyDescriptor, _: PropertyDescriptor, _: PropertyDescriptor, )

Place a post-write barrier
Source§

unsafe fn initial() -> Self

Create a default value
Source§

impl Initialize for PropertyDescriptor

Source§

unsafe fn initial() -> Option<PropertyDescriptor>

Create a default value. If there is no meaningful default possible, returns None. SAFETY: The default must not be a value that can be meaningfully garbage collected.
Source§

impl PartialEq for PropertyDescriptor

Source§

fn eq(&self, other: &PropertyDescriptor) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Rootable for PropertyDescriptor

Source§

const VTABLE: RootedVFTable = _

Source§

unsafe extern "C" fn trace( this: *mut c_void, trc: *mut JSTracer, _name: *const i8, )

Source§

impl Traceable for PropertyDescriptor

Source§

unsafe fn trace(&self, trc: *mut JSTracer)

Trace self.
Source§

impl Copy for PropertyDescriptor

Source§

impl StructuralPartialEq for PropertyDescriptor

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> Filterable for T

Source§

fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(DataRequest<'_>) -> bool>

Creates a filterable data provider with the given name for debugging. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> RootKind for T
where T: Rootable,

Source§

const VTABLE: <T as RootKind>::Vtable

Source§

const KIND: RootKind = JS::RootKind::Traceable

Source§

type Vtable = *const RootedVFTable

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes