pub struct HashMapCodec<K, V, KC, VC, const NULLABLE: bool, const TRACK_REF: bool>(/* private fields */);Trait Implementations§
Source§impl<K, V, KS, VS, const NULLABLE: bool, const TRACK_REF: bool> Serializer for HashMapCodec<K, V, KS, VS, NULLABLE, TRACK_REF>
impl<K, V, KS, VS, const NULLABLE: bool, const TRACK_REF: bool> Serializer for HashMapCodec<K, V, KS, VS, NULLABLE, TRACK_REF>
type Target = HashMap<K, V>
Source§fn write_data(
value: &Self::Target,
context: &mut WriteContext<'_>,
) -> Result<(), Error>
fn write_data( value: &Self::Target, context: &mut WriteContext<'_>, ) -> Result<(), Error>
Write the target body only.
Source§fn read_data(context: &mut ReadContext<'_>) -> Result<Self::Target, Error>
fn read_data(context: &mut ReadContext<'_>) -> Result<Self::Target, Error>
Read the target body only.
Source§fn default_value(_: &mut ReadContext<'_>) -> Result<Self::Target, Error>
fn default_value(_: &mut ReadContext<'_>) -> Result<Self::Target, Error>
Construct a target for a null or missing local value.
Source§fn read_arc_any(
context: &mut ReadContext<'_>,
) -> Result<Arc<dyn Any + Send + Sync>, Error>
fn read_arc_any( context: &mut ReadContext<'_>, ) -> Result<Arc<dyn Any + Send + Sync>, Error>
Read directly into the final owner for sync dynamic carriers.
Auto Trait Implementations§
impl<K, V, KC, VC, const NULLABLE: bool, const TRACK_REF: bool> Freeze for HashMapCodec<K, V, KC, VC, NULLABLE, TRACK_REF>
impl<K, V, KC, VC, const NULLABLE: bool, const TRACK_REF: bool> RefUnwindSafe for HashMapCodec<K, V, KC, VC, NULLABLE, TRACK_REF>
impl<K, V, KC, VC, const NULLABLE: bool, const TRACK_REF: bool> Send for HashMapCodec<K, V, KC, VC, NULLABLE, TRACK_REF>
impl<K, V, KC, VC, const NULLABLE: bool, const TRACK_REF: bool> Sync for HashMapCodec<K, V, KC, VC, NULLABLE, TRACK_REF>
impl<K, V, KC, VC, const NULLABLE: bool, const TRACK_REF: bool> Unpin for HashMapCodec<K, V, KC, VC, NULLABLE, TRACK_REF>
impl<K, V, KC, VC, const NULLABLE: bool, const TRACK_REF: bool> UnsafeUnpin for HashMapCodec<K, V, KC, VC, NULLABLE, TRACK_REF>
impl<K, V, KC, VC, const NULLABLE: bool, const TRACK_REF: bool> UnwindSafe for HashMapCodec<K, V, KC, VC, NULLABLE, TRACK_REF>
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