pub struct Session {
pub opts: SessionOptions,
pub failed: Cell<bool>,
}
Fields§
§opts: SessionOptions
§failed: Cell<bool>
Whether any error diagnostics were produced.
Implementations§
Trait Implementations§
Source§impl DiagEmitter for Session
impl DiagEmitter for Session
Source§fn emit(&self, diag: DiagBuilder2)
fn emit(&self, diag: DiagBuilder2)
Emit a diagnostic message.
Source§impl SessionContext for Session
impl SessionContext for Session
Source§fn has_verbosity(&self, verb: Verbosity) -> bool
fn has_verbosity(&self, verb: Verbosity) -> bool
Check if a verbosity option is set.
Auto Trait Implementations§
impl !Freeze for Session
impl !RefUnwindSafe for Session
impl Send for Session
impl !Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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