Struct glsl_lang::ast::TranslationUnit
source · [−]pub struct TranslationUnit(pub Vec<Node<ExternalDeclarationData>, Global>);
Expand description
Starting rule.
Tuple Fields
0: Vec<Node<ExternalDeclarationData>, Global>
Trait Implementations
sourceimpl Clone for TranslationUnit
impl Clone for TranslationUnit
sourcefn clone(&self) -> TranslationUnit
fn clone(&self) -> TranslationUnit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TranslationUnit
impl Debug for TranslationUnit
sourceimpl Extractable<TranslationUnit> for TranslationUnit
impl Extractable<TranslationUnit> for TranslationUnit
sourceimpl Extractable<TranslationUnit> for ArraySpecifier
impl Extractable<TranslationUnit> for ArraySpecifier
sourceimpl Extractable<TranslationUnit> for FunIdentifier
impl Extractable<TranslationUnit> for FunIdentifier
sourceimpl Extractable<TranslationUnit> for StorageQualifier
impl Extractable<TranslationUnit> for StorageQualifier
sourceimpl Extractable<TranslationUnit> for LayoutQualifier
impl Extractable<TranslationUnit> for LayoutQualifier
sourceimpl Extractable<TranslationUnit> for TypeQualifier
impl Extractable<TranslationUnit> for TypeQualifier
sourceimpl Extractable<TranslationUnit> for UnaryOp
impl Extractable<TranslationUnit> for UnaryOp
sourceimpl Extractable<TranslationUnit> for TypeSpecifier
impl Extractable<TranslationUnit> for TypeSpecifier
sourceimpl Extractable<TranslationUnit> for Declaration
impl Extractable<TranslationUnit> for Declaration
sourceimpl Extractable<TranslationUnit> for StructSpecifier
impl Extractable<TranslationUnit> for StructSpecifier
sourceimpl Extractable<TranslationUnit> for Expr
impl Extractable<TranslationUnit> for Expr
sourceimpl Extractable<TranslationUnit> for Preprocessor
impl Extractable<TranslationUnit> for Preprocessor
sourceimpl Extractable<TranslationUnit> for Statement
impl Extractable<TranslationUnit> for Statement
sourceimpl Extractable<TranslationUnit> for AssignmentOp
impl Extractable<TranslationUnit> for AssignmentOp
sourceimpl Extractable<TranslationUnit> for ExprStatement
impl Extractable<TranslationUnit> for ExprStatement
sourceimpl Extractable<TranslationUnit> for SwitchStatement
impl Extractable<TranslationUnit> for SwitchStatement
sourceimpl Extractable<TranslationUnit> for CaseLabel
impl Extractable<TranslationUnit> for CaseLabel
sourceimpl Extractable<TranslationUnit> for JumpStatement
impl Extractable<TranslationUnit> for JumpStatement
sourceimpl From<Node<TranslationUnit>> for TranslationUnit
impl From<Node<TranslationUnit>> for TranslationUnit
sourcefn from(node: Node<TranslationUnit>) -> TranslationUnit
fn from(node: Node<TranslationUnit>) -> TranslationUnit
Converts to this type from the input type.
sourceimpl HasParser for TranslationUnit
impl HasParser for TranslationUnit
type Parser = TranslationUnitParser
type Parser = TranslationUnitParser
Type of the parser to create
sourceimpl Host for TranslationUnit
impl Host for TranslationUnit
sourceimpl HostMut for TranslationUnit
impl HostMut for TranslationUnit
sourcefn visit_mut<V>(&mut self, visitor: &mut V) where
V: VisitorMut,
fn visit_mut<V>(&mut self, visitor: &mut V) where
V: VisitorMut,
Visit an AST node.
sourceimpl NodeContent for TranslationUnit
impl NodeContent for TranslationUnit
sourcefn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
fn into_node<T>(self) -> Node<T> where
T: From<Self> + NodeContent,
Convert the contents into a node
sourcefn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
sourceimpl NodeContentDisplay for TranslationUnit
impl NodeContentDisplay for TranslationUnit
sourceimpl PartialEq<TranslationUnit> for TranslationUnit
impl PartialEq<TranslationUnit> for TranslationUnit
sourcefn eq(&self, other: &TranslationUnit) -> bool
fn eq(&self, other: &TranslationUnit) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TranslationUnit) -> bool
fn ne(&self, other: &TranslationUnit) -> bool
This method tests for !=
.
impl StructuralPartialEq for TranslationUnit
Auto Trait Implementations
impl RefUnwindSafe for TranslationUnit
impl Send for TranslationUnit
impl Sync for TranslationUnit
impl Unpin for TranslationUnit
impl UnwindSafe for TranslationUnit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> NodeDisplay for T where
T: NodeContentDisplay,
impl<T> NodeDisplay for T where
T: NodeContentDisplay,
sourcefn display(&self) -> NodeDisplayWrapper<'_, T>
fn display(&self) -> NodeDisplayWrapper<'_, T>
Obtain a display wrapper for the current node
sourceimpl<T> Parse for T where
T: HasParser,
impl<T> Parse for T where
T: HasParser,
sourcefn parse<'i, L>(
source: <L as LangLexer<'i>>::Input
) -> Result<T, Located<ParseErrorKind<<<L as LangLexer<'i>>::Iter as HasLexerError>::Error>>> where
L: LangLexer<'i>,
fn parse<'i, L>(
source: <L as LangLexer<'i>>::Input
) -> Result<T, Located<ParseErrorKind<<<L as LangLexer<'i>>::Iter as HasLexerError>::Error>>> where
L: LangLexer<'i>,
Parse the input source
sourcefn parse_with_options<'i, L>(
source: <L as LangLexer<'i>>::Input,
opts: &ParseOptions
) -> Result<(T, ParseContext, <L as LangLexer<'i>>::Iter), Located<ParseErrorKind<<<L as LangLexer<'i>>::Iter as HasLexerError>::Error>>> where
L: LangLexer<'i>,
fn parse_with_options<'i, L>(
source: <L as LangLexer<'i>>::Input,
opts: &ParseOptions
) -> Result<(T, ParseContext, <L as LangLexer<'i>>::Iter), Located<ParseErrorKind<<<L as LangLexer<'i>>::Iter as HasLexerError>::Error>>> where
L: LangLexer<'i>,
Parse the input source with the given options
sourcefn parse_with_context<'i, L>(
source: <L as LangLexer<'i>>::Input,
ctx: &ParseContext
) -> Result<(T, ParseContext, <L as LangLexer<'i>>::Iter), Located<ParseErrorKind<<<L as LangLexer<'i>>::Iter as HasLexerError>::Error>>> where
L: LangLexer<'i>,
fn parse_with_context<'i, L>(
source: <L as LangLexer<'i>>::Input,
ctx: &ParseContext
) -> Result<(T, ParseContext, <L as LangLexer<'i>>::Iter), Located<ParseErrorKind<<<L as LangLexer<'i>>::Iter as HasLexerError>::Error>>> where
L: LangLexer<'i>,
Parse the input source with the given context