Skip to main content

impl_any_compatible_conversions

Macro impl_any_compatible_conversions 

Source
macro_rules! impl_any_compatible_conversions {
    ($($t:ty),* $(,)?) => { ... };
}
Expand description

Implement the conversions between each listed AnyCompatible type and FFI values: TryFrom<AnyView>, TryFrom<Any> and TryFrom<&Any>, and use as an argument of Function::call_tuple and of functions from into_typed_fn!.

#[derive(ObjectRef)] calls it; a type that implements AnyCompatible by hand calls it after that impl. See also impl_object_ref_downcast_ref! for an object reference implemented by hand.