Skip to main content

single_element_struct_to_reg

Function single_element_struct_to_reg 

Source
fn single_element_struct_to_reg<'a, Ty, C>(
    cx: &C,
    ty: TyAndLayout<'a, Ty>,
) -> Option<Uniform>
where Ty: TyAbiInterface<'a, C> + Copy, C: HasDataLayout,
Expand description

If the given type is a (potentially nested) struct containing a single scalar, return a Uniform for the contained, single element.