Function chalk_solve::clauses::builtin_traits::last_field_of_struct
source ยท fn last_field_of_struct<I: Interner>(
db: &dyn RustIrDatabase<I>,
id: AdtId<I>,
subst: &Substitution<I>,
) -> Option<Ty<I>>
Expand description
Returns type of the last field of the input struct, which is useful for Sized
and related
traits. Returns None
if the input is not a struct or it has no fields.