Trait jlrs::layout::valid_layout::ValidLayout[][src]

pub unsafe trait ValidLayout {
    fn valid_layout(ty: Value<'_, '_>) -> bool;
}
Expand description

Trait used to check if a Rust type and Julia type have matching layouts. All wrappers generated by JlrsReflect.jl derive this trait. In this case all fields are checked recursively to determine if the value can be unboxed as that type.

Required methods

Check if the layout of the implementor is compatible with the layout of ty. This argument is a Value to account for the fact that a field type can be a Union, UnionAll or Union{}.

Implementations on Foreign Types

Implementors