pub enum ScriptModuleReturnValue {
Int(i32),
Float(f64),
String(String),
Boolean(bool),
StringArray(Vec<String>),
IntArray(Vec<i32>),
FloatArray(Vec<f64>),
IntTable(HashMap<String, i32>),
FloatTable(HashMap<String, f64>),
StringTable(HashMap<String, String>),
}Available on crate feature
module only.Expand description
スクリプトモジュールの関数の戻り値の型を表す列挙型。
Variants§
Int(i32)
Float(f64)
String(String)
Boolean(bool)
StringArray(Vec<String>)
IntArray(Vec<i32>)
FloatArray(Vec<f64>)
IntTable(HashMap<String, i32>)
FloatTable(HashMap<String, f64>)
StringTable(HashMap<String, String>)
Trait Implementations§
Source§impl Clone for ScriptModuleReturnValue
impl Clone for ScriptModuleReturnValue
Source§fn clone(&self) -> ScriptModuleReturnValue
fn clone(&self) -> ScriptModuleReturnValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScriptModuleReturnValue
impl Debug for ScriptModuleReturnValue
Source§impl IntoScriptModuleReturnValue for ScriptModuleReturnValue
impl IntoScriptModuleReturnValue for ScriptModuleReturnValue
type Err = Infallible
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 Freeze for ScriptModuleReturnValue
impl RefUnwindSafe for ScriptModuleReturnValue
impl Send for ScriptModuleReturnValue
impl Sync for ScriptModuleReturnValue
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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