pub enum ScriptModuleReturnValue {
Show 13 variants
Int(i32),
Float(f64),
String(String),
Boolean(bool),
Data(*const c_void),
StringArray(Vec<String>),
IntArray(Vec<i32>),
FloatArray(Vec<f64>),
IntTable(HashMap<String, i32>),
FloatTable(HashMap<String, f64>),
StringTable(HashMap<String, String>),
Function(ScriptModuleFunctionCallback),
MetaTable(ErasedScriptModuleUserData),
}Available on crate feature
module only.Expand description
スクリプトモジュールの関数の戻り値の型を表す列挙型。
Variants§
Int(i32)
Float(f64)
String(String)
Boolean(bool)
Data(*const c_void)
StringArray(Vec<String>)
IntArray(Vec<i32>)
FloatArray(Vec<f64>)
IntTable(HashMap<String, i32>)
FloatTable(HashMap<String, f64>)
StringTable(HashMap<String, String>)
Function(ScriptModuleFunctionCallback)
MetaTable(ErasedScriptModuleUserData)
Trait Implementations§
Source§impl Debug for ScriptModuleReturnValue
impl Debug for ScriptModuleReturnValue
Source§impl IntoScriptModuleReturnValue for ScriptModuleReturnValue
impl IntoScriptModuleReturnValue for ScriptModuleReturnValue
type Err = !
fn into_return_values(self) -> Result<Vec<ScriptModuleReturnValue>, Self::Err>
fn push_into( self, param: &mut ScriptModuleCallHandle, ) -> Result<(), IntoScriptModuleReturnValueError<Self::Err>>
Auto Trait Implementations§
impl !Send for ScriptModuleReturnValue
impl !Sync for ScriptModuleReturnValue
impl Freeze for ScriptModuleReturnValue
impl RefUnwindSafe for ScriptModuleReturnValue
impl Unpin for ScriptModuleReturnValue
impl UnsafeUnpin for ScriptModuleReturnValue
impl UnwindSafe for ScriptModuleReturnValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more