pub struct HostFunctionBinding {
pub name: String,
pub parameters: Vec<(String, Option<String>)>,
pub result: Option<String>,
pub doc_string: String,
}
Expand description
struct describing a HostFunction.
Fields§
§name: String
Name used to bind this HostFunction including Namespaces.
parameters: Vec<(String, Option<String>)>
The type of the parameters this HostFunction takes.
result: Option<String>
The type of the result of this HostFunction.
doc_string: String
The documentation for this HostFunction. Can be text or Markdown.
Auto Trait Implementations§
impl Freeze for HostFunctionBinding
impl RefUnwindSafe for HostFunctionBinding
impl Send for HostFunctionBinding
impl Sync for HostFunctionBinding
impl Unpin for HostFunctionBinding
impl UnwindSafe for HostFunctionBinding
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