[][src]Struct chalk_solve::logging_db::LoggingRustIrDatabase

pub struct LoggingRustIrDatabase<I, DB, P = DB> where
    DB: RustIrDatabase<I>,
    P: Borrow<DB>,
    I: Interner
{ /* fields omitted */ }

Wraps another RustIrDatabase (DB) and records which definitions are used.

A full .chalk file containing all used definitions can be recovered through LoggingRustIrDatabase's Display implementation.

Uses a separate type, P, for the database stored inside to account for Arc or wrapping other storage mediums.

Implementations

impl<I, DB, P> LoggingRustIrDatabase<I, DB, P> where
    DB: RustIrDatabase<I>,
    P: Borrow<DB>,
    I: Interner
[src]

pub fn new(db: P) -> Self[src]

Trait Implementations

impl<I: Debug, DB: Debug, P: Debug> Debug for LoggingRustIrDatabase<I, DB, P> where
    DB: RustIrDatabase<I>,
    P: Borrow<DB>,
    I: Interner
[src]

impl<I, DB, P> Display for LoggingRustIrDatabase<I, DB, P> where
    DB: RustIrDatabase<I>,
    P: Borrow<DB>,
    I: Interner
[src]

impl<I, DB, P> RustIrDatabase<I> for LoggingRustIrDatabase<I, DB, P> where
    DB: RustIrDatabase<I>,
    P: Borrow<DB> + Debug,
    I: Interner
[src]

Auto Trait Implementations

impl<I, DB, P> RefUnwindSafe for LoggingRustIrDatabase<I, DB, P> where
    DB: RefUnwindSafe,
    P: RefUnwindSafe

impl<I, DB, P> Send for LoggingRustIrDatabase<I, DB, P> where
    DB: Send,
    P: Send,
    <I as Interner>::DefId: Send,
    <I as Interner>::InternedAdtId: Send

impl<I, DB, P> Sync for LoggingRustIrDatabase<I, DB, P> where
    DB: Sync,
    P: Sync,
    <I as Interner>::DefId: Send,
    <I as Interner>::InternedAdtId: Send

impl<I, DB, P> Unpin for LoggingRustIrDatabase<I, DB, P> where
    DB: Unpin,
    P: Unpin,
    <I as Interner>::DefId: Unpin,
    <I as Interner>::InternedAdtId: Unpin

impl<I, DB, P> UnwindSafe for LoggingRustIrDatabase<I, DB, P> where
    DB: UnwindSafe,
    P: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<DB, I> Split<I> for DB where
    DB: RustIrDatabase<I> + ?Sized,
    I: Interner
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.