pub struct HoverMapper { /* private fields */ }Expand description
Maps LSP hover responses to ricecoder models
Implementations§
Source§impl HoverMapper
impl HoverMapper
Sourcepub fn with_transformer(transformer: OutputTransformer) -> Self
pub fn with_transformer(transformer: OutputTransformer) -> Self
Create a mapper with custom transformations
Sourcepub fn map_content(
&self,
content: &Value,
rules: &HoverMappingRules,
) -> Result<Value>
pub fn map_content( &self, content: &Value, rules: &HoverMappingRules, ) -> Result<Value>
Map hover content directly
This is useful when you already have the hover content extracted and just need to apply field mappings.
Trait Implementations§
Source§impl Clone for HoverMapper
impl Clone for HoverMapper
Source§fn clone(&self) -> HoverMapper
fn clone(&self) -> HoverMapper
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HoverMapper
impl Debug for HoverMapper
Auto Trait Implementations§
impl Freeze for HoverMapper
impl RefUnwindSafe for HoverMapper
impl Send for HoverMapper
impl Sync for HoverMapper
impl Unpin for HoverMapper
impl UnwindSafe for HoverMapper
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