pub struct TranslationUnit(pub Vec<Node<ExternalDeclarationData>>);
Expand description
Starting rule.
Tuple Fields§
§0: Vec<Node<ExternalDeclarationData>>
Trait Implementations§
Source§impl Clone for TranslationUnit
impl Clone for TranslationUnit
Source§fn clone(&self) -> TranslationUnit
fn clone(&self) -> TranslationUnit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TranslationUnit
impl Debug for TranslationUnit
Source§impl Extractable<TranslationUnit> for ArraySpecifier
impl Extractable<TranslationUnit> for ArraySpecifier
Source§impl Extractable<TranslationUnit> for AssignmentOp
impl Extractable<TranslationUnit> for AssignmentOp
Source§impl Extractable<TranslationUnit> for CaseLabel
impl Extractable<TranslationUnit> for CaseLabel
Source§impl Extractable<TranslationUnit> for Declaration
impl Extractable<TranslationUnit> for Declaration
Source§impl Extractable<TranslationUnit> for Expr
impl Extractable<TranslationUnit> for Expr
Source§impl Extractable<TranslationUnit> for ExprStatement
impl Extractable<TranslationUnit> for ExprStatement
Source§impl Extractable<TranslationUnit> for FunIdentifier
impl Extractable<TranslationUnit> for FunIdentifier
Source§impl Extractable<TranslationUnit> for JumpStatement
impl Extractable<TranslationUnit> for JumpStatement
Source§impl Extractable<TranslationUnit> for LayoutQualifier
impl Extractable<TranslationUnit> for LayoutQualifier
Source§impl Extractable<TranslationUnit> for Preprocessor
impl Extractable<TranslationUnit> for Preprocessor
Source§impl Extractable<TranslationUnit> for Statement
impl Extractable<TranslationUnit> for Statement
Source§impl Extractable<TranslationUnit> for StructSpecifier
impl Extractable<TranslationUnit> for StructSpecifier
Source§impl Extractable<TranslationUnit> for SwitchStatement
impl Extractable<TranslationUnit> for SwitchStatement
Source§impl Extractable<TranslationUnit> for TypeQualifier
impl Extractable<TranslationUnit> for TypeQualifier
Source§impl Extractable<TranslationUnit> for TypeSpecifier
impl Extractable<TranslationUnit> for TypeSpecifier
Source§impl Extractable<TranslationUnit> for UnaryOp
impl Extractable<TranslationUnit> for UnaryOp
Source§impl Extractable<TranslationUnit> for TranslationUnit
impl Extractable<TranslationUnit> for TranslationUnit
Source§impl HasParser for TranslationUnit
impl HasParser for TranslationUnit
Source§impl Host for TranslationUnit
impl Host for TranslationUnit
Source§impl HostMut for TranslationUnit
impl HostMut for TranslationUnit
Source§fn 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.
Source§impl NodeContent for TranslationUnit
impl NodeContent for TranslationUnit
Source§fn 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
Source§fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
Source§impl NodeContentDisplay for TranslationUnit
impl NodeContentDisplay for TranslationUnit
Source§impl PartialEq for TranslationUnit
impl PartialEq for TranslationUnit
impl StructuralPartialEq for TranslationUnit
Auto Trait Implementations§
impl Freeze for TranslationUnit
impl RefUnwindSafe for TranslationUnit
impl Send for TranslationUnit
impl Sync for TranslationUnit
impl Unpin for TranslationUnit
impl UnwindSafe for TranslationUnit
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DefaultParse for Twhere
T: Parse,
impl<T> DefaultParse for Twhere
T: Parse,
Source§fn parse<'i>(
source: <Lexer<'i> as LangLexer<'i>>::Input,
) -> Result<T, Located<ParseErrorKind<<<Lexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>>
fn parse<'i>( source: <Lexer<'i> as LangLexer<'i>>::Input, ) -> Result<T, Located<ParseErrorKind<<<Lexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>>
Parse the input source
Source§fn parse_with_options<'i>(
source: <Lexer<'i> as LangLexer<'i>>::Input,
opts: &ParseOptions,
) -> Result<(T, ParseContext, <Lexer<'i> as LangLexer<'i>>::Iter), Located<ParseErrorKind<<<Lexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>>
fn parse_with_options<'i>( source: <Lexer<'i> as LangLexer<'i>>::Input, opts: &ParseOptions, ) -> Result<(T, ParseContext, <Lexer<'i> as LangLexer<'i>>::Iter), Located<ParseErrorKind<<<Lexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>>
Parse the input source with the given options
Source§fn parse_with_context<'i>(
source: <Lexer<'i> as LangLexer<'i>>::Input,
ctx: &ParseContext,
) -> Result<(T, ParseContext, <Lexer<'i> as LangLexer<'i>>::Iter), Located<ParseErrorKind<<<Lexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>>
fn parse_with_context<'i>( source: <Lexer<'i> as LangLexer<'i>>::Input, ctx: &ParseContext, ) -> Result<(T, ParseContext, <Lexer<'i> as LangLexer<'i>>::Iter), Located<ParseErrorKind<<<Lexer<'i> as LangLexer<'i>>::Iter as HasLexerError>::Error>>>
Parse the input source with the given context
Source§impl<T> NodeDisplay for Twhere
T: NodeContentDisplay,
impl<T> NodeDisplay for Twhere
T: NodeContentDisplay,
Source§impl<T> Parsable for Twhere
T: Extractable<TranslationUnit>,
impl<T> Parsable for Twhere
T: Extractable<TranslationUnit>,
Source§fn parse_with_options<'i>(
source: &'i str,
opts: &ParseOptions,
) -> Result<(T, ParseContext), Located<ParseErrorKind<<Lexer<'i> as HasLexerError>::Error>>>
fn parse_with_options<'i>( source: &'i str, opts: &ParseOptions, ) -> Result<(T, ParseContext), Located<ParseErrorKind<<Lexer<'i> as HasLexerError>::Error>>>
Parse the input source with the given options
Source§fn parse_with_context<'i>(
source: &'i str,
ctx: &ParseContext,
) -> Result<(T, ParseContext), Located<ParseErrorKind<<Lexer<'i> as HasLexerError>::Error>>>
fn parse_with_context<'i>( source: &'i str, ctx: &ParseContext, ) -> Result<(T, ParseContext), Located<ParseErrorKind<<Lexer<'i> as HasLexerError>::Error>>>
Parse the input source with the given context
Source§fn parse(
source: &str,
) -> Result<Self, ParseError<<DefaultLexer<'_> as HasLexerError>::Error>>
fn parse( source: &str, ) -> Result<Self, ParseError<<DefaultLexer<'_> as HasLexerError>::Error>>
Parse the input source
Source§impl<T> Parse for Twhere
T: HasParser,
impl<T> Parse for Twhere
T: HasParser,
Source§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>,
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
Source§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>,
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
Source§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>,
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