pub(crate) struct ParseSess {
    parse_sess: RawParseSess,
    ignore_path_set: Lrc<IgnorePathSet>,
    can_reset_errors: Lrc<AtomicBool>,
}
Expand description

ParseSess holds structs necessary for constructing a parser.

Fields

parse_sess: RawParseSessignore_path_set: Lrc<IgnorePathSet>can_reset_errors: Lrc<AtomicBool>

Implementations

Determine the submodule path for the given module identifier.

  • id - The name of the module
  • relative - If Some(symbol), the symbol name is a directory relative to the dir_path. If relative is Some, resolve the submodle at {dir_path}/{symbol}/{id}.rs or {dir_path}/{symbol}/{id}/mod.rs. if None, resolve the module at {dir_path}/{id}.rs.
  • dir_path - Module resolution will occur relative to this directory.

Determines whether two byte positions are in the same source line.

Trait Implementations

Returns the LineRange that corresponds to span in self. Read more

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.

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: 960 bytes