Skip to main content

hao_il2cpp_runtime/
reflect.rs

1//! Reflection roots for the `reflect` feature. See [`hao::reflect`](https://docs.rs/hao/latest/hao/reflect/index.html) for the
2//! pattern. Only the plain-data types reflect; the runtime handles (raw
3//! pointers, GC handles, hooks) do not.
4
5use facet::{Facet, Shape};
6
7/// The reflected data types describing a method's shape.
8pub fn roots() -> &'static [&'static Shape] {
9    &[
10        <crate::typed::TypeInfo as Facet>::SHAPE,
11        <crate::typed::Parameter as Facet>::SHAPE,
12    ]
13}