Module adjustment

Module adjustment 

Source
Expand description

Implementation of “adjustment” inlay hints:

let _: u32  = /* <never-to-any> */ loop {};
let _: &u32 = /* &* */ &mut 0;

Functions§

hints 🔒
mode_and_needs_parens_for_adjustment_hints 🔒
Returns whatever the hint should be postfix and if we need to add parentheses on the inside and/or outside of expr, if we are going to add (postfix) adjustments hints to it.
needs_parens_for_adjustment_hints 🔒
Returns whatever we need to add parentheses on the inside and/or outside of expr, if we are going to add (postfix) adjustments hints to it.