pub struct SessionGlobals {
symbol_interner: Interner,
pub source_map: SourceMap,
}Expand description
All the globals for a compiler sessions.
Fields§
§symbol_interner: InternerThe interner for Symbols used in the compiler.
source_map: SourceMapThe source map used in the compiler.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SessionGlobals
impl !RefUnwindSafe for SessionGlobals
impl !Send for SessionGlobals
impl !Sync for SessionGlobals
impl Unpin for SessionGlobals
impl UnwindSafe for SessionGlobals
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