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>
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>
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.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more