Skip to main content

ICustomConvertersCollectionMethods

Trait ICustomConvertersCollectionMethods 

Source
pub trait ICustomConvertersCollectionMethods: ICustomConvertersCollection {
    // Provided methods
    fn ctor(self) { ... }
    fn set_script_to_clr_custom_conversion(
        self,
        script_data_type: impl Into<DataType>,
        clr_data_type: impl Into<SystemType>,
        converter: impl Into<Func_2<DynValue, Object>>,
    ) { ... }
    fn get_script_to_clr_custom_conversion(
        self,
        script_data_type: impl Into<DataType>,
        clr_data_type: impl Into<SystemType>,
    ) -> Func_2<DynValue, Object> { ... }
    fn set_clr_to_script_custom_conversion(
        self,
        clr_data_type: impl Into<SystemType>,
        converter: impl Into<Func_3<Script, Object, DynValue>>,
    ) { ... }
    fn set_clr_to_script_custom_conversion_2<M0: IlType + Copy + ClassIdentity>(
        self,
        converter: impl Into<Func_3<Script, M0, DynValue>>,
    ) { ... }
    fn get_clr_to_script_custom_conversion(
        self,
        clr_data_type: impl Into<SystemType>,
    ) -> Func_3<Script, Object, DynValue> { ... }
    fn set_clr_to_script_custom_conversion_3(
        self,
        clr_data_type: impl Into<SystemType>,
        converter: impl Into<Func_2<Object, DynValue>>,
    ) { ... }
    fn set_clr_to_script_custom_conversion_4<M0: IlType + Copy + ClassIdentity>(
        self,
        converter: impl Into<Func_2<M0, DynValue>>,
    ) { ... }
    fn clear(self) { ... }
}

Provided Methods§

Source

fn ctor(self)

.ctor() overload

Source

fn set_script_to_clr_custom_conversion( self, script_data_type: impl Into<DataType>, clr_data_type: impl Into<SystemType>, converter: impl Into<Func_2<DynValue, Object>>, )

SetScriptToClrCustomConversion(crate::moon_sharp::interpreter::datatype::DataType, ::unity::SystemType, crate::system::func_2::Func_2<crate::moon_sharp::interpreter::dynvalue::DynValue,crate::system::object::Object>) overload

Source

fn get_script_to_clr_custom_conversion( self, script_data_type: impl Into<DataType>, clr_data_type: impl Into<SystemType>, ) -> Func_2<DynValue, Object>

GetScriptToClrCustomConversion(crate::moon_sharp::interpreter::datatype::DataType, ::unity::SystemType) overload

Source

fn set_clr_to_script_custom_conversion( self, clr_data_type: impl Into<SystemType>, converter: impl Into<Func_3<Script, Object, DynValue>>, )

SetClrToScriptCustomConversion(::unity::SystemType, crate::system::func_3::Func_3<crate::moon_sharp::interpreter::script::Script,crate::system::object::Object,crate::moon_sharp::interpreter::dynvalue::DynValue>) overload

Source

fn set_clr_to_script_custom_conversion_2<M0: IlType + Copy + ClassIdentity>( self, converter: impl Into<Func_3<Script, M0, DynValue>>, )

Source

fn get_clr_to_script_custom_conversion( self, clr_data_type: impl Into<SystemType>, ) -> Func_3<Script, Object, DynValue>

GetClrToScriptCustomConversion(::unity::SystemType) overload

Source

fn set_clr_to_script_custom_conversion_3( self, clr_data_type: impl Into<SystemType>, converter: impl Into<Func_2<Object, DynValue>>, )

SetClrToScriptCustomConversion(::unity::SystemType, crate::system::func_2::Func_2<crate::system::object::Object,crate::moon_sharp::interpreter::dynvalue::DynValue>) overload

Source

fn set_clr_to_script_custom_conversion_4<M0: IlType + Copy + ClassIdentity>( self, converter: impl Into<Func_2<M0, DynValue>>, )

Source

fn clear(self)

Clear() overload

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: ICustomConvertersCollection> ICustomConvertersCollectionMethods for __T

Available on crate feature moon_sharp-interpreter-interop-customconverterscollection only.