df_ls_syntax_analysis 0.3.0-rc.1

A language server for Dwarf Fortress RAW files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::Argument;
use df_ls_diagnostics::DiagnosticsInfo;

pub trait TryFromArgument: Sized {
    /// Convert 1 argument to `Self`.
    fn try_from_argument(
        arg_opt: Option<&Argument>,
        source: &str,
        diagnostics: &mut DiagnosticsInfo,
        add_diagnostics_on_err: bool,
    ) -> Result<Self, ()>;

    fn expected_argument_types() -> String;
}