Polish some details

This commit is contained in:
Loïc Lecrenier 2022-09-08 13:41:01 +02:00 committed by Loïc Lecrenier
parent cb8442a119
commit 51961e1064
5 changed files with 11 additions and 34 deletions

View file

@ -2,6 +2,8 @@ use std::borrow::Cow;
use heed::{BytesDecode, BytesEncode};
/// A codec for values of type `&str`. Unlike `Str`, its `EItem` and `DItem` associated
/// types are equivalent (= `&'a str`) and these values can reside within another structure.
pub struct StrRefCodec;
impl<'a> BytesEncode<'a> for StrRefCodec {
type EItem = &'a str;