pub struct HostValue(/* private fields */);Expand description
A shared handle on a HostObject.
Implementations§
Source§impl HostValue
impl HostValue
pub fn new(object: impl HostObject + 'static) -> Self
pub fn object(&self) -> &dyn HostObject
Sourcepub fn number(&self) -> Option<i64>
pub fn number(&self) -> Option<i64>
The object’s HostObject::host_number.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HostValue
impl !UnwindSafe for HostValue
impl Forget for HostValue
impl Freeze for HostValue
impl Move for HostValue
impl Send for HostValue
impl Sync for HostValue
impl Unpin for HostValue
impl UnsafeUnpin for HostValue
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