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) -> Accessor<G, S>
pub fn configurable(self) -> Accessor<G, S>
Make the property to be configurable
sourcepub fn enumerable(self) -> Accessor<G, S>
pub fn enumerable(self) -> Accessor<G, S>
Make the property to be enumerable
Trait Implementations§
source§impl<'js, S, SA> AsProperty<'js, ((), (), SA)> for Accessor<(), S>where
S: IntoJsFunc<'js, SA> + 'js,
impl<'js, S, SA> AsProperty<'js, ((), (), SA)> for Accessor<(), S>where
S: IntoJsFunc<'js, SA> + 'js,
A property with setter only
source§impl<'js, G, GA> AsProperty<'js, (GA, (), ())> for Accessor<G, ()>where
G: IntoJsFunc<'js, GA> + 'js,
impl<'js, G, GA> AsProperty<'js, (GA, (), ())> for Accessor<G, ()>where
G: IntoJsFunc<'js, GA> + 'js,
A property with getter only
source§impl<'js, G, GA, S, SA> AsProperty<'js, (GA, SA)> for Accessor<G, S>where
G: IntoJsFunc<'js, GA> + 'js,
S: IntoJsFunc<'js, SA> + 'js,
impl<'js, G, GA, S, SA> AsProperty<'js, (GA, SA)> for Accessor<G, S>where
G: IntoJsFunc<'js, GA> + 'js,
S: IntoJsFunc<'js, SA> + 'js,
A property with getter and setter
impl<G, S> Copy for Accessor<G, S>
Auto Trait Implementations§
impl<G, S> Freeze for Accessor<G, S>
impl<G, S> RefUnwindSafe for Accessor<G, S>where
G: RefUnwindSafe,
S: RefUnwindSafe,
impl<G, S> Send for Accessor<G, S>
impl<G, S> Sync for Accessor<G, S>
impl<G, S> Unpin for Accessor<G, S>
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
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