Skip to main content

Module methods

Module methods 

Source
Expand description

Method completions for Result, Option, and other types

Functions§

extract_generic_arg
Extract a specific generic argument by index from a type name Example: extract_generic_arg(“Table”, 0) -> Some(“Row”) Example: extract_generic_arg(“Map<String, Number>”, 1) -> Some(“Number”)
extract_option_inner
Check if type is Option and return the inner type T
extract_result_inner
Check if type is Result and return the inner type T
method_completion_item
option_method_completions
Get method completions for Option type
parse_generic_type
result_method_completions
Get method completions for Result type