pub struct CheckHooks {
pub record: Option<Rc<dyn Fn(&Rc<Expr>, &Ty)>>,
pub resolve_hook: Option<Rc<dyn Fn(&Rc<Expr>, Option<Target>)>>,
}Expand description
the language server’s tables, filled while the checker runs (infer.rs hooks)
Fields§
§record: Option<Rc<dyn Fn(&Rc<Expr>, &Ty)>>called with every expression’s inferred type as the checker settles it (the language server’s hover and hints)
resolve_hook: Option<Rc<dyn Fn(&Rc<Expr>, Option<Target>)>>called with every name’s resolution target, or none for an unresolved name (navigation)
Auto Trait Implementations§
impl !RefUnwindSafe for CheckHooks
impl !Send for CheckHooks
impl !Sync for CheckHooks
impl !UnwindSafe for CheckHooks
impl Freeze for CheckHooks
impl Unpin for CheckHooks
impl UnsafeUnpin for CheckHooks
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