pub struct CallableRef(/* private fields */);Expand description
An object reference known to be callable.
Implementations§
Source§impl CallableRef
impl CallableRef
pub fn try_clone(&self) -> Result<Self, RuntimeError>
pub fn as_object(&self) -> &ObjectRef
pub fn into_object(self) -> ObjectRef
pub fn belongs_to(&self, runtime: &Runtime) -> bool
Methods from Deref<Target = ObjectRef>§
pub fn try_clone(&self) -> Result<Self, RuntimeError>
Sourcepub fn belongs_to(&self, runtime: &Runtime) -> bool
pub fn belongs_to(&self, runtime: &Runtime) -> bool
Whether this reference belongs to runtime.
Trait Implementations§
Source§impl Clone for CallableRef
impl Clone for CallableRef
Source§impl Debug for CallableRef
impl Debug for CallableRef
Source§impl Deref for CallableRef
impl Deref for CallableRef
Source§impl From<CallableRef> for Value
impl From<CallableRef> for Value
Source§fn from(value: CallableRef) -> Self
fn from(value: CallableRef) -> Self
Converts to this type from the input type.
Source§impl FromJs for CallableRef
A callable object; anything else is a TypeError.
impl FromJs for CallableRef
A callable object; anything else is a TypeError.
Source§impl PartialEq for CallableRef
impl PartialEq for CallableRef
impl StructuralPartialEq for CallableRef
Auto Trait Implementations§
impl !RefUnwindSafe for CallableRef
impl !Send for CallableRef
impl !Sync for CallableRef
impl !UnwindSafe for CallableRef
impl Freeze for CallableRef
impl Unpin for CallableRef
impl UnsafeUnpin for CallableRef
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