pub struct HostFnValue {
pub module: Rc<str>,
pub op: Rc<str>,
}Expand description
The two names a bound host operation is: the host module the operation belongs to, and the operation itself.
Neither is the operation’s implementation. A bound host operation is a name the same way a bound host module is, and what it names is looked up through the registry at the call.
Fields§
§module: Rc<str>The host module, such as console.
op: Rc<str>The operation’s own name, such as println.
Trait Implementations§
Source§impl Clone for HostFnValue
impl Clone for HostFnValue
Source§fn clone(&self) -> HostFnValue
fn clone(&self) -> HostFnValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for HostFnValue
impl !Sync for HostFnValue
impl Freeze for HostFnValue
impl RefUnwindSafe for HostFnValue
impl Unpin for HostFnValue
impl UnsafeUnpin for HostFnValue
impl UnwindSafe for HostFnValue
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