Enum glsl_lang_pp::processor::expand::ExpandState
source · enum ExpandState {
Init {
ast: Ast,
current_state: ProcessorState,
},
Iterate {
iterator: SyntaxElementChildren<PreprocessorLang>,
errors: Vec<Located<ErrorKind>>,
current_state: ProcessorState,
},
EnterNewFile {
iterator: SyntaxElementChildren<PreprocessorLang>,
errors: Vec<Located<ErrorKind>>,
current_state: ProcessorState,
path: ParsedPath,
node: SyntaxNode<PreprocessorLang>,
},
PendingOne {
iterator: SyntaxElementChildren<PreprocessorLang>,
errors: Vec<Located<ErrorKind>>,
node_or_token: NodeOrToken<SyntaxNode<PreprocessorLang>, SyntaxToken<PreprocessorLang>>,
current_state: ProcessorState,
},
PendingEvents {
iterator: SyntaxElementChildren<PreprocessorLang>,
errors: Vec<Located<ErrorKind>>,
events: ArrayVec<Event, 3>,
current_state: ProcessorState,
},
ExpandedTokens {
iterator: SyntaxElementChildren<PreprocessorLang>,
errors: Vec<Located<ErrorKind>>,
events: VecDeque<Event>,
current_state: ProcessorState,
},
Complete,
}
Variants§
Init
Iterate
EnterNewFile
Fields
§
iterator: SyntaxElementChildren<PreprocessorLang>
§
current_state: ProcessorState
§
path: ParsedPath
§
node: SyntaxNode<PreprocessorLang>
PendingOne
Fields
§
iterator: SyntaxElementChildren<PreprocessorLang>
§
node_or_token: NodeOrToken<SyntaxNode<PreprocessorLang>, SyntaxToken<PreprocessorLang>>
§
current_state: ProcessorState
PendingEvents
ExpandedTokens
Complete
Auto Trait Implementations§
impl Freeze for ExpandState
impl !RefUnwindSafe for ExpandState
impl !Send for ExpandState
impl !Sync for ExpandState
impl Unpin for ExpandState
impl !UnwindSafe for ExpandState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more