pub struct InlayHintQuery {
pub file: PathBuf,
pub start_line: Option<u32>,
pub end_line: Option<u32>,
pub kinds: Option<Vec<InlayHintKind>>,
}Expand description
Query parameters for requesting inlay hints
Fields§
§file: PathBufFile to get hints for
start_line: Option<u32>Start line (0-indexed), None for file start
end_line: Option<u32>End line (0-indexed), None for file end
kinds: Option<Vec<InlayHintKind>>Filter by hint kind
Implementations§
Source§impl InlayHintQuery
impl InlayHintQuery
Sourcepub fn range(path: impl Into<PathBuf>, start: u32, end: u32) -> Self
pub fn range(path: impl Into<PathBuf>, start: u32, end: u32) -> Self
Create a query for a specific range
Sourcepub fn types_only(self) -> Self
pub fn types_only(self) -> Self
Filter to only type hints
Sourcepub fn parameters_only(self) -> Self
pub fn parameters_only(self) -> Self
Filter to only parameter hints
Sourcepub fn to_lsp_params(&self) -> Value
pub fn to_lsp_params(&self) -> Value
Build LSP request parameters
Trait Implementations§
Source§impl Clone for InlayHintQuery
impl Clone for InlayHintQuery
Source§fn clone(&self) -> InlayHintQuery
fn clone(&self) -> InlayHintQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InlayHintQuery
impl RefUnwindSafe for InlayHintQuery
impl Send for InlayHintQuery
impl Sync for InlayHintQuery
impl Unpin for InlayHintQuery
impl UnsafeUnpin for InlayHintQuery
impl UnwindSafe for InlayHintQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more