Skip to main content

FromHostArgument

Trait FromHostArgument 

Source
pub trait FromHostArgument: Argument + Sized { }
Expand description

An owned or live argument accepted by Rustia’s built-in callback adapters.

Implement FromRustia for custom owned arguments. Live crate::Value, crate::Table, and Function handles are accepted directly. This trait is sealed and can be used as a generic bound.

ⓘ
struct CustomArgument;
impl rustia::FromHostArgument for CustomArgument {}

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Argument> FromHostArgument for T