Skip to main content

element_entry

Function element_entry 

Source
pub fn element_entry<M: SerializeMap, P: Primitive>(
    map: &mut M,
    key: &str,
    primitive: &P,
) -> Result<(), M::Error>
Expand description

Writes key with the primitive’s _name object, unless it carries no id and no extension.

§Errors

Returns the serializer’s error.