pub struct PropertyDescriptor<'js> {
pub value: Value<'js>,
pub getter: Value<'js>,
pub setter: Value<'js>,
pub configurable: bool,
pub enumerable: bool,
pub writable: bool,
pub is_getset: bool,
}Expand description
A JavaScript property descriptor returned from JsClass::exotic_get_own_property.
Fields§
§value: Value<'js>The property value (for data descriptors).
getter: Value<'js>The getter function (for accessor descriptors).
setter: Value<'js>The setter function (for accessor descriptors).
configurable: boolWhether the property is configurable.
enumerable: boolWhether the property is enumerable.
writable: boolWhether the property is writable (data descriptors only).
is_getset: boolWhether this is a getter/setter descriptor.
Implementations§
Auto Trait Implementations§
impl<'js> Freeze for PropertyDescriptor<'js>
impl<'js> RefUnwindSafe for PropertyDescriptor<'js>
impl<'js> !Send for PropertyDescriptor<'js>
impl<'js> !Sync for PropertyDescriptor<'js>
impl<'js> Unpin for PropertyDescriptor<'js>
impl<'js> UnsafeUnpin for PropertyDescriptor<'js>
impl<'js> !UnwindSafe for PropertyDescriptor<'js>
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> 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 more