Type Alias DirectiveResult

Source
pub type DirectiveResult<I> = Result<Directive<I>, <Directive<I> as TryFrom<(FileId, SyntaxNode<PreprocessorLang>)>>::Error>;

Aliased Type§

enum DirectiveResult<I> {
    Ok(Directive<I>),
    Err(<Directive<I> as TryFrom<(FileId, SyntaxNode<PreprocessorLang>)>>::Error),
}

Variants§

§1.0.0

Ok(Directive<I>)

Contains the success value

§1.0.0

Err(<Directive<I> as TryFrom<(FileId, SyntaxNode<PreprocessorLang>)>>::Error)

Contains the error value

Trait Implementations§

Source§

impl<I: TryFrom<(FileId, SyntaxNode<PreprocessorLang>)> + Debug + Clone> DirectiveExt for DirectiveResult<I>

Source§

fn into_node(self) -> SyntaxNode<PreprocessorLang>