pub trait ESExprDictCodec<'a>where
Self: Sized + 'a,{
type Element: ESExprCodec<'a> + 'a;
// Required methods
fn encode_dict_element(
&'a self,
kwargs: &mut BTreeMap<CowStr<'a>, ESExpr<'a>>,
);
fn decode_dict_element(
kwargs: &mut BTreeMap<CowStr<'a>, ESExpr<'a>>,
constructor_name: &str,
) -> Result<Self, DecodeError>;
}Expand description
A field codec for dictionary arguments.
Required Associated Types§
Sourcetype Element: ESExprCodec<'a> + 'a
type Element: ESExprCodec<'a> + 'a
The element type.
Required Methods§
Sourcefn encode_dict_element(&'a self, kwargs: &mut BTreeMap<CowStr<'a>, ESExpr<'a>>)
fn encode_dict_element(&'a self, kwargs: &mut BTreeMap<CowStr<'a>, ESExpr<'a>>)
Encode dictionary arguments.
Sourcefn decode_dict_element(
kwargs: &mut BTreeMap<CowStr<'a>, ESExpr<'a>>,
constructor_name: &str,
) -> Result<Self, DecodeError>
fn decode_dict_element( kwargs: &mut BTreeMap<CowStr<'a>, ESExpr<'a>>, constructor_name: &str, ) -> Result<Self, DecodeError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.