Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

plugins.lsp.servers.rust_analyzer.settings.inlayHints.expressionAdjustmentHints.enable

Show inlay hints for type adjustments.

Values:

  • always: Always show all adjustment hints.
  • never: Never show adjustment hints.
  • reborrow: Only show auto borrow and dereference adjustment hints.

Type: null or one of “always”, “never”, “reborrow”

Default: null

Plugin default: "never"

Declared by:

plugins.lsp.servers.rust_analyzer.settings.inlayHints.expressionAdjustmentHints.disableReborrows

Disable reborrows in expression adjustments inlay hints.

Reborrows are a pair of a builtin deref then borrow, i.e. &*. They are inserted by the compiler but are mostly useless to the programmer.

Note: if the deref is not builtin (an overloaded deref), or the borrow is &raw const/&raw mut, they are not removed.

Type: null or boolean

Default: null

Plugin default: true

Declared by:

plugins.lsp.servers.rust_analyzer.settings.inlayHints.expressionAdjustmentHints.hideOutsideUnsafe

Hide inlay hints for type adjustments outside of unsafe blocks.

Type: null or boolean

Default: null

Plugin default: false

Declared by:

plugins.lsp.servers.rust_analyzer.settings.inlayHints.expressionAdjustmentHints.mode

Show inlay hints as postfix ops (.* instead of *, etc).

Values:

  • prefix: Always show adjustment hints as prefix (*expr).
  • postfix: Always show adjustment hints as postfix (expr.*).
  • prefer_prefix: Show prefix or postfix depending on which uses less parenthesis, preferring prefix.
  • prefer_postfix: Show prefix or postfix depending on which uses less parenthesis, preferring postfix.

Type: null or one of “prefix”, “postfix”, “prefer_prefix”, “prefer_postfix”

Default: null

Plugin default: "prefix"

Declared by: