@@ -35,6 +35,7 @@ pub struct InlayHintsConfig {
35
35
pub parameter_hints : bool ,
36
36
pub chaining_hints : bool ,
37
37
pub adjustment_hints : AdjustmentHints ,
38
+ pub adjustment_hints_mode : AdjustmentHintsMode ,
38
39
pub adjustment_hints_hide_outside_unsafe : bool ,
39
40
pub closure_return_type_hints : ClosureReturnTypeHints ,
40
41
pub binding_mode_hints : bool ,
@@ -74,6 +75,14 @@ pub enum AdjustmentHints {
74
75
Never ,
75
76
}
76
77
78
+ #[ derive( Copy , Clone , Debug , PartialEq , Eq ) ]
79
+ pub enum AdjustmentHintsMode {
80
+ Prefix ,
81
+ Postfix ,
82
+ PreferPrefix ,
83
+ PreferPostfix ,
84
+ }
85
+
77
86
#[ derive( Clone , Debug , PartialEq , Eq ) ]
78
87
pub enum InlayKind {
79
88
BindingModeHint ,
@@ -82,6 +91,7 @@ pub enum InlayKind {
82
91
ClosureReturnTypeHint ,
83
92
GenericParamListHint ,
84
93
AdjustmentHint ,
94
+ AdjustmentHintPostfix ,
85
95
LifetimeHint ,
86
96
ParameterHint ,
87
97
TypeHint ,
@@ -430,7 +440,7 @@ mod tests {
430
440
use itertools:: Itertools ;
431
441
use test_utils:: extract_annotations;
432
442
433
- use crate :: inlay_hints:: AdjustmentHints ;
443
+ use crate :: inlay_hints:: { AdjustmentHints , AdjustmentHintsMode } ;
434
444
use crate :: DiscriminantHints ;
435
445
use crate :: { fixture, inlay_hints:: InlayHintsConfig , LifetimeElisionHints } ;
436
446
@@ -446,6 +456,7 @@ mod tests {
446
456
lifetime_elision_hints : LifetimeElisionHints :: Never ,
447
457
closure_return_type_hints : ClosureReturnTypeHints :: Never ,
448
458
adjustment_hints : AdjustmentHints :: Never ,
459
+ adjustment_hints_mode : AdjustmentHintsMode :: Prefix ,
449
460
adjustment_hints_hide_outside_unsafe : false ,
450
461
binding_mode_hints : false ,
451
462
hide_named_constructor_hints : false ,
0 commit comments