Struct chalk_solve::display::WriterState
source · pub struct WriterState<I, DB, P = DB>{ /* private fields */ }
Expand description
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§
source§impl<I, DB, P> WriterState<I, DB, P>
impl<I, DB, P> WriterState<I, DB, P>
Trait Implementations§
source§impl<I, DB, P> Clone for WriterState<I, DB, P>
impl<I, DB, P> Clone for WriterState<I, DB, P>
Auto Trait Implementations§
impl<I, DB, P> Freeze for WriterState<I, DB, P>
impl<I, DB, P> RefUnwindSafe for WriterState<I, DB, P>where
I: Hash + Eq + PartialEq + Copy + Clone + Debug,
DB: Debug + RefUnwindSafe + ?Sized,
P: RefUnwindSafe,
impl<I, DB, P> Send for WriterState<I, DB, P>
impl<I, DB, P> Sync for WriterState<I, DB, P>
impl<I, DB, P> Unpin for WriterState<I, DB, P>
impl<I, DB, P> UnwindSafe for WriterState<I, DB, P>where
I: Hash + Eq + PartialEq + Copy + Clone + Debug,
DB: Debug + UnwindSafe + ?Sized,
P: UnwindSafe,
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.