Skip to main content

write_context_option

Function write_context_option 

Source
pub fn write_context_option<T>(
    codec: &ContextCodec,
    value: &Option<T>,
    write: impl Fn(&ContextCodec, &T) -> Result<Json, DecodeError>,
) -> Result<Json, DecodeError>
Expand description

Writes standalone Option’s canonical enum representation.