Skip to main content

describe_effect_method_at

Function describe_effect_method_at 

Source
pub fn describe_effect_method_at(
    text: &str,
    offset: usize,
    expr_types: &[(Span, TyId)],
    tys: &Types,
) -> Option<String>
Expand description

#2683, #2711, #3437: hover on the within of e.within(d), the race of a.race(b) or the detach of e.detach(), where the receiver is an Effect: its signature and what it does and does not do. The kernel methods have no declaration to read a doc from, so these are written here; the receiver’s type keeps a user type’s own within or race method from being described as them.