Skip to main content

BoundFunctionObject

Struct BoundFunctionObject 

Source
pub struct BoundFunctionObject { /* private fields */ }

Trait Implementations§

Source§

impl JsFunctionObject for BoundFunctionObject

Source§

impl JsObject for BoundFunctionObject

Source§

fn get_object_base_mut(&mut self) -> &mut ObjectBase

Source§

fn get_object_base(&self) -> &ObjectBase

Source§

fn as_js_object(&self) -> &dyn JsObject

Source§

fn as_js_object_mut(&mut self) -> &mut dyn JsObject

Source§

fn to_string(&self) -> String

Source§

fn get_prototype_of(&self) -> Option<JsObjectType>

Source§

fn set_prototype_of(&mut self, prototype: Option<JsObjectType>) -> bool

Source§

fn is_extensible(&self) -> bool

Source§

fn prevent_extensions(&mut self) -> bool

Source§

fn get_own_property( &self, property: &PropertyKey, ) -> Result<Option<&PropertyDescriptor>, JErrorType>

Source§

fn define_own_property( &mut self, property: PropertyKey, descriptor_setter: PropertyDescriptorSetter, ) -> Result<bool, JErrorType>

Source§

fn has_property(&self, property: &PropertyKey) -> bool

Source§

fn get( &self, ctx_stack: &mut ExecutionContextStack, property: &PropertyKey, receiver: JsValueOrSelf<'_>, ) -> Result<JsValue, JErrorType>

Source§

fn set( &mut self, ctx_stack: &mut ExecutionContextStack, property: PropertyKey, value: JsValue, receiver: JsValueOrSelf<'_>, ) -> Result<bool, JErrorType>

Source§

fn delete(&mut self, property: &PropertyKey) -> Result<bool, JErrorType>

Source§

fn enumerate(&self) -> JsIteratorObject

Source§

fn own_property_keys( &self, ctx_stack: &mut ExecutionContextStack, ) -> Vec<PropertyKey>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.