Struct rquickjs_core::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
sourceimpl<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
sourceimpl<'js, S, SA, SR> AsProperty<'js, ((), (), SA, SR)> for Accessor<(), S> where
S: AsFunction<'js, SA, SR> + ParallelSend + 'static,
impl<'js, S, SA, SR> AsProperty<'js, ((), (), SA, SR)> for Accessor<(), S> where
S: AsFunction<'js, SA, SR> + ParallelSend + 'static,
A property with setter only
sourceimpl<'js, G, GA, GR> AsProperty<'js, (GA, GR, (), ())> for Accessor<G, ()> where
G: AsFunction<'js, GA, GR> + ParallelSend + 'static,
impl<'js, G, GA, GR> AsProperty<'js, (GA, GR, (), ())> for Accessor<G, ()> where
G: AsFunction<'js, GA, GR> + ParallelSend + 'static,
A property with getter only
sourceimpl<'js, G, GA, GR, S, SA, SR> AsProperty<'js, (GA, GR, SA, SR)> for Accessor<G, S> where
G: AsFunction<'js, GA, GR> + ParallelSend + 'static,
S: AsFunction<'js, SA, SR> + ParallelSend + 'static,
impl<'js, G, GA, GR, S, SA, SR> AsProperty<'js, (GA, GR, SA, SR)> for Accessor<G, S> where
G: AsFunction<'js, GA, GR> + ParallelSend + 'static,
S: AsFunction<'js, SA, SR> + ParallelSend + 'static,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more