Struct rquickjs_core::object::Accessor
source · pub struct Accessor<G, S> { /* private fields */ }
Available on crate feature
properties
only.Expand description
The accessor descriptor of a readonly property
Implementations§
source§impl<G, S> Accessor<G, S>
impl<G, S> Accessor<G, S>
sourcepub fn configurable(self) -> Self
pub fn configurable(self) -> Self
Make the property to be configurable
sourcepub fn enumerable(self) -> Self
pub fn enumerable(self) -> Self
Make the property to be enumerable
Trait Implementations§
source§impl<'js, S, SA, SR> AsProperty<'js, ((), (), SA, SR)> for Accessor<(), S>where
S: AsFunction<'js, SA, SR> + 'js,
impl<'js, S, SA, SR> AsProperty<'js, ((), (), SA, SR)> for Accessor<(), S>where S: AsFunction<'js, SA, SR> + 'js,
A property with setter only
source§impl<'js, G, GA, GR> AsProperty<'js, (GA, GR, (), ())> for Accessor<G, ()>where
G: AsFunction<'js, GA, GR> + 'js,
impl<'js, G, GA, GR> AsProperty<'js, (GA, GR, (), ())> for Accessor<G, ()>where G: AsFunction<'js, GA, GR> + 'js,
A property with getter only
source§impl<'js, G, GA, GR, S, SA, SR> AsProperty<'js, (GA, GR, SA, SR)> for Accessor<G, S>where
G: AsFunction<'js, GA, GR> + 'js,
S: AsFunction<'js, SA, SR> + 'js,
impl<'js, G, GA, GR, S, SA, SR> AsProperty<'js, (GA, GR, SA, SR)> for Accessor<G, S>where G: AsFunction<'js, GA, GR> + 'js, S: AsFunction<'js, SA, SR> + 'js,
A property with getter and setter
impl<G: Copy, S: Copy> Copy for Accessor<G, S>
Auto Trait Implementations§
impl<G, S> RefUnwindSafe for Accessor<G, S>where G: RefUnwindSafe, S: RefUnwindSafe,
impl<G, S> Send for Accessor<G, S>where G: Send, S: Send,
impl<G, S> Sync for Accessor<G, S>where G: Sync, S: Sync,
impl<G, S> Unpin for Accessor<G, S>where G: Unpin, S: Unpin,
impl<G, S> UnwindSafe for Accessor<G, S>where G: UnwindSafe, S: UnwindSafe,
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