Type Alias glsl_lang_pp::processor::nodes::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>