pub struct ShaderParser<'a> {
    pub token_index: usize,
    pub dsl_expand_index: usize,
    pub origin_file_id: LiveFileId,
    pub tokens_with_span: Cloned<Iter<'a, TokenWithSpan>>,
    pub live_registry: &'a LiveRegistry,
    pub shader_registry: &'a ShaderRegistry,
    pub type_deps: &'a mut Vec<ShaderParserDep>,
    pub closure_defs: Vec<ClosureDef>,
    pub token_with_span: TokenWithSpan,
    pub self_kind: Option<FnSelfKind>,
    pub end: TextPos,
}

Fields

token_index: usizedsl_expand_index: usizeorigin_file_id: LiveFileIdtokens_with_span: Cloned<Iter<'a, TokenWithSpan>>live_registry: &'a LiveRegistryshader_registry: &'a ShaderRegistrytype_deps: &'a mut Vec<ShaderParserDep>closure_defs: Vec<ClosureDef>token_with_span: TokenWithSpanself_kind: Option<FnSelfKind>end: TextPos

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.