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
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for HostValue
impl !UnwindSafe for HostValue
impl Freeze 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