[][src]Struct chalk_solve::logging_db::WriteOnDropRustIrDatabase

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

Wraps a RustIrDatabase, and, when dropped, writes out all used definition to the given file.

Uses LoggingRustIrDatabase internally.

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

Implementations

impl<I, W, DB, P> WriteOnDropRustIrDatabase<I, W, DB, P> where
    I: Interner,
    W: Write,
    DB: RustIrDatabase<I>,
    P: Borrow<DB>, 
[src]

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

pub fn from_logging_db(db: LoggingRustIrDatabase<I, DB, P>, write: W) -> Self[src]

Trait Implementations

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

impl<I, W, DB, P> Drop for WriteOnDropRustIrDatabase<I, W, DB, P> where
    I: Interner,
    W: Write,
    DB: RustIrDatabase<I>,
    P: Borrow<DB>, 
[src]

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

fn generator_witness_datum(
    &self,
    generator_id: GeneratorId<I>
) -> Arc<GeneratorWitnessDatum<I>>
[src]

Returns the generator witness datum for the generator with the given id.

Auto Trait Implementations

impl<I, W, DB, P> RefUnwindSafe for WriteOnDropRustIrDatabase<I, W, DB, P> where
    DB: RefUnwindSafe,
    P: RefUnwindSafe,
    W: RefUnwindSafe

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

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

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

impl<I, W, DB, P> UnwindSafe for WriteOnDropRustIrDatabase<I, W, DB, P> where
    DB: UnwindSafe,
    P: UnwindSafe,
    W: 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, 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.