#[repr(C)]pub struct JsiObject { /* private fields */ }
Implementations§
Source§impl JsiObject
impl JsiObject
pub fn instance_of(&self, rt: Pin<&mut Runtime>, ctor: &JsiFunction) -> bool
Source§impl JsiObject
impl JsiObject
pub fn has_property(&self, rt: Pin<&mut Runtime>, prop: &PropNameID) -> bool
Source§impl JsiObject
impl JsiObject
pub fn new(rt: Pin<&mut Runtime>) -> UniquePtr<Self>
pub fn from_host_object( rt: Pin<&mut Runtime>, ho: SharedPtr<HostObject>, ) -> UniquePtr<Self>
pub fn compare(&self, other: &Self, rt: Pin<&mut Runtime>) -> bool
pub fn get_property( &self, rt: Pin<&mut Runtime>, prop: &PropNameID, ) -> UniquePtr<JsiValue>
pub fn set_property( self: Pin<&mut Self>, rt: Pin<&mut Runtime>, prop: &PropNameID, value: &JsiValue, )
pub fn as_array(&self, rt: Pin<&mut Runtime>) -> Option<UniquePtr<JsiArray>>
pub fn as_array_buffer( &self, rt: Pin<&mut Runtime>, ) -> Option<UniquePtr<JsiArrayBuffer>>
pub fn as_function( &self, rt: Pin<&mut Runtime>, ) -> Option<UniquePtr<JsiFunction>>
pub fn get_property_names( self: Pin<&mut Self>, rt: Pin<&mut Runtime>, ) -> UniquePtr<JsiArray>
Trait Implementations§
Source§impl ExternType for JsiObject
impl ExternType for JsiObject
impl UniquePtrTarget for JsiObject
Auto Trait Implementations§
impl !Freeze for JsiObject
impl RefUnwindSafe for JsiObject
impl !Send for JsiObject
impl !Sync for JsiObject
impl !Unpin for JsiObject
impl UnwindSafe for JsiObject
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