Skip to main content

with_codec_for_decode

Function with_codec_for_decode 

Source
pub fn with_codec_for_decode<C, R, B, F>(
    state: &'static CodecState<C>,
    config_entry: &EffectiveConfigEntry,
    build: B,
    f: F,
) -> Result<R, DecodeError>
where B: FnOnce(&str) -> CuResult<C>, F: FnOnce(&mut C) -> Result<R, DecodeError>,