Struct rustfmt_nightly::parse::parser::Parser
source · pub(crate) struct Parser<'a> {
parser: RawParser<'a>,
}
Expand description
A parser for Rust source code.
Fields§
§parser: RawParser<'a>
Implementations§
source§impl<'a> Parser<'a>
impl<'a> Parser<'a>
pub(crate) fn submod_path_from_attr(
attrs: &[Attribute],
path: &Path
) -> Option<PathBuf>
pub(crate) fn parse_file_as_module(
sess: &'a ParseSess,
path: &Path,
span: Span
) -> Result<(AttrVec, Vec<P<Item>>, Span), ParserError>
pub(crate) fn parse_crate(
input: Input,
sess: &'a ParseSess
) -> Result<Crate, ParserError>
fn parse_crate_inner(
input: Input,
sess: &'a ParseSess
) -> Result<Crate, ParserError>
fn parse_crate_mod(&mut self) -> Result<Crate, ParserError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Parser<'a>
impl<'a> !Send for Parser<'a>
impl<'a> !Sync for Parser<'a>
impl<'a> Unpin for Parser<'a>
impl<'a> !UnwindSafe for Parser<'a>
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 336 bytes