pub struct HashConsDedupSerializer {
ser: RefCell<TypeMap<SerializeTableMapper>>,
de: RefCell<TypeMap<DeserializeTableMapper>>,
}Fields§
§ser: RefCell<TypeMap<SerializeTableMapper>>§de: RefCell<TypeMap<DeserializeTableMapper>>Trait Implementations§
Source§impl Default for HashConsDedupSerializer
impl Default for HashConsDedupSerializer
Source§fn default() -> HashConsDedupSerializer
fn default() -> HashConsDedupSerializer
Returns the “default value” for a type. Read more
Source§impl HashConsSerializerState for HashConsDedupSerializer
impl HashConsSerializerState for HashConsDedupSerializer
Source§fn record_serialized<T: Mappable>(&self, id: HashConsId) -> Option<bool>
fn record_serialized<T: Mappable>(&self, id: HashConsId) -> Option<bool>
Record that this type is being serialized. Return
None if we’re not deduplicating
values, otherwise return whether this item was newly recorded.Source§fn record_deserialized<T: Mappable>(&self, id: HashConsId, val: HashConsed<T>)
fn record_deserialized<T: Mappable>(&self, id: HashConsId, val: HashConsed<T>)
Record that we deserialized this type.
Source§fn get_deserialized_val<T: Mappable>(
&self,
id: HashConsId,
) -> Option<HashConsed<T>>
fn get_deserialized_val<T: Mappable>( &self, id: HashConsId, ) -> Option<HashConsed<T>>
Find the previously-deserialized type with that id.
Auto Trait Implementations§
impl !Freeze for HashConsDedupSerializer
impl !RefUnwindSafe for HashConsDedupSerializer
impl !Sync for HashConsDedupSerializer
impl !UnwindSafe for HashConsDedupSerializer
impl Send for HashConsDedupSerializer
impl Unpin for HashConsDedupSerializer
impl UnsafeUnpin for HashConsDedupSerializer
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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