#[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
Fields§
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
§getter_: *mut JSObject
§setter_: *mut JSObject
§value_: Value
Implementations§
source§impl PropertyDescriptor
impl PropertyDescriptor
pub fn hasConfigurable_(&self) -> bool
pub fn set_hasConfigurable_(&mut self, val: bool)
pub fn configurable_(&self) -> bool
pub fn set_configurable_(&mut self, val: bool)
pub fn hasEnumerable_(&self) -> bool
pub fn set_hasEnumerable_(&mut self, val: bool)
pub fn enumerable_(&self) -> bool
pub fn set_enumerable_(&mut self, val: bool)
pub fn hasWritable_(&self) -> bool
pub fn set_hasWritable_(&mut self, val: bool)
pub fn writable_(&self) -> bool
pub fn set_writable_(&mut self, val: bool)
pub fn hasValue_(&self) -> bool
pub fn set_hasValue_(&mut self, val: bool)
pub fn hasGetter_(&self) -> bool
pub fn set_hasGetter_(&mut self, val: bool)
pub fn hasSetter_(&self) -> bool
pub fn set_hasSetter_(&mut self, val: bool)
pub fn resolving_(&self) -> bool
pub fn set_resolving_(&mut self, val: bool)
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
impl Clone for PropertyDescriptor
source§fn clone(&self) -> PropertyDescriptor
fn clone(&self) -> PropertyDescriptor
Returns a copy 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 PropertyDescriptor
impl Debug for PropertyDescriptor
source§impl Default for PropertyDescriptor
impl Default for PropertyDescriptor
source§fn default() -> PropertyDescriptor
fn default() -> PropertyDescriptor
Returns the “default value” for a type. Read more
source§impl GCMethods for PropertyDescriptor
impl GCMethods for PropertyDescriptor
source§unsafe fn initial() -> PropertyDescriptor
unsafe fn initial() -> PropertyDescriptor
Create a default value
source§unsafe fn post_barrier(
_: *mut PropertyDescriptor,
_: PropertyDescriptor,
_: PropertyDescriptor,
)
unsafe fn post_barrier( _: *mut PropertyDescriptor, _: PropertyDescriptor, _: PropertyDescriptor, )
Place a post-write barrier
source§impl PartialEq for PropertyDescriptor
impl PartialEq for PropertyDescriptor
source§fn eq(&self, other: &PropertyDescriptor) -> bool
fn eq(&self, other: &PropertyDescriptor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RootKind for PropertyDescriptor
impl RootKind for PropertyDescriptor
impl Copy for PropertyDescriptor
impl StructuralPartialEq for PropertyDescriptor
Auto Trait Implementations§
impl Freeze for PropertyDescriptor
impl RefUnwindSafe for PropertyDescriptor
impl !Send for PropertyDescriptor
impl !Sync for PropertyDescriptor
impl Unpin for PropertyDescriptor
impl UnwindSafe for PropertyDescriptor
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> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.