pub trait IntoScriptModuleReturnValuewhere
Self: Sized,{
type Err: Send + Sync + 'static + Into<Box<dyn Error + Send + Sync + 'static>>;
// Required method
fn into_return_values(
self,
) -> Result<Vec<ScriptModuleReturnValue>, Self::Err>;
// Provided method
fn push_into(
self,
param: &mut ScriptModuleCallHandle,
) -> Result<(), IntoScriptModuleReturnValueError<Self::Err>> { ... }
}Available on crate feature
module only.Expand description
関数の戻り値として使える型。
§Note
この関数はDeriveマクロを使用して実装することもできます。
詳細はIntoScriptModuleReturnValueのドキュメントを参照してください。
Required Associated Types§
Required Methods§
fn into_return_values(self) -> Result<Vec<ScriptModuleReturnValue>, Self::Err>
Provided Methods§
fn push_into( self, param: &mut ScriptModuleCallHandle, ) -> Result<(), IntoScriptModuleReturnValueError<Self::Err>>
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.