[−][src]Struct boa::property::DataDescriptor
A data descriptor is a property that has a value, which may or may not be writable.
More information:
Implementations
impl DataDescriptor[src]
pub fn new<V>(value: V, attributes: Attribute) -> Self where
V: Into<Value>, [src]
V: Into<Value>,
Create a new DataDescriptor.
pub fn value(&self) -> Value[src]
Return the value of the data descriptor.
pub fn attributes(&self) -> Attribute[src]
Return the attributes of the descriptor.
pub fn configurable(&self) -> bool[src]
Check whether the descriptor is configurable.
pub fn set_configurable(&mut self, configurable: bool)[src]
Set whether the descriptor is configurable.
pub fn enumerable(&self) -> bool[src]
Check whether the descriptor is enumerable.
pub fn set_enumerable(&mut self, enumerable: bool)[src]
Set whether the descriptor is enumerable.
pub fn writable(&self) -> bool[src]
Check whether the descriptor is writable.
pub fn set_writable(&mut self, writable: bool)[src]
Set whether the descriptor is writable.
Trait Implementations
impl Clone for DataDescriptor[src]
pub fn clone(&self) -> DataDescriptor[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for DataDescriptor[src]
impl Drop for DataDescriptor[src]
impl Finalize for DataDescriptor[src]
impl From<DataDescriptor> for PropertyDescriptor[src]
pub fn from(value: DataDescriptor) -> Self[src]
impl Trace for DataDescriptor[src]
Auto Trait Implementations
impl !RefUnwindSafe for DataDescriptor[src]
impl !Send for DataDescriptor[src]
impl !Sync for DataDescriptor[src]
impl Unpin for DataDescriptor[src]
impl !UnwindSafe for DataDescriptor[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> NativeObject for T where
T: Any + Debug + Trace, [src]
T: Any + Debug + Trace,
pub fn as_any(&Self) -> &(dyn Any + 'static)[src]
pub fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,