[][src]Struct chalk_solve::display::WriterState

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

Writer state which persists across multiple writes.

Currently, this means keeping track of what IDs have been given what names, including deduplication information.

This data is stored using interior mutability - clones will point to the same underlying data.

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

Implementations

impl<I, DB: ?Sized, P> WriterState<I, DB, P> where
    DB: RustIrDatabase<I>,
    P: Borrow<DB>,
    I: Interner
[src]

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

Trait Implementations

impl<I, DB: ?Sized, P> Clone for WriterState<I, DB, P> where
    DB: RustIrDatabase<I>,
    P: Borrow<DB> + Clone,
    I: Interner
[src]

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

Auto Trait Implementations

impl<I, DB: ?Sized, P> RefUnwindSafe for WriterState<I, DB, P> where
    DB: RefUnwindSafe,
    P: RefUnwindSafe

impl<I, DB: ?Sized, P> Send for WriterState<I, DB, P> where
    DB: Send,
    P: Send,
    <I as Interner>::DefId: Send,
    <I as Interner>::InternedAdtId: Send

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

impl<I, DB: ?Sized, P> Unpin for WriterState<I, DB, P> where
    DB: Unpin,
    P: Unpin

impl<I, DB: ?Sized, P> UnwindSafe for WriterState<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<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.